1. 选择权回到用户手中。需要用户主动点击授权之后,小程序才能向其推送服务通知,
2、时长不受限制。「订阅消息」取消了7天内推送消息的时间限制,只要用户没有主动拒收消息推送,开发者就可以随时推送服务通知。
2、时长不受限制。「订阅消息」取消了7天内推送消息的时间限制,只要用户没有主动拒收消息推送,开发者就可以随时推送服务通知。
bzr \ cvs \ git \ mercurial \ subversion
-ignore='Path .git'
-ignore='Path .github'
-ignore='Path docker-compose'
-ignore='Path .idea'
-ignore='Name *.gitignore'
query := db.Model(r).Updates(something) if query.Error != nil { return query.Error } if query.RowsAffected == 0 { return gorm.ErrRecordNotFound }
query := db.Delete(&something{ID: ID}) if query.Error != nil { return query.Error } if query.RowsAffected == 0 { return gorm.ErrRecordNotFound }
unox
or fswatch
was causing a heavy CPU load. This CPU load is very significant, even on modern high-end CPUs (like a i7 4770k / 3.5GHz).docker-sync start mkmf.rb can't find header files
ruby versionの管理が混乱になっている。
rbenvを導入
brew update brew install rbenv ruby-buildrbenv install -lrbenv install 2.6.4エラー、BUILD FAILED (OS X 10.。。。。sudo chmod -s /usr/sbin/dtrace
RUBY_CONFIGURE_OPTS="--disable-dtrace" rbenv install
でrubyをインストールできた。
which gem
which ruby
gem listgem install docker-composegem install docker-syncでOK
gte
ids []int `json:"ids,omitempty" binding:"required,gte=1"`
gin+GAE+graphql のテスト下記で行けった。
appEngineTestInstance
->instance.NewRequest
gin.Context(request)
context.Set(key value)
```
ins, _ := aetest.NewInstance(nil) req, _ := ins.NewRequest("", "", nil) var context *gin.Context context = &gin.Context{Request: req} b, _ := json.Marshal(x.y{z: "1"}) context.Set("key", b)
$GOPATH/src
and the package file under $GOPATH/pkg/<architecture>
, for example: $GOPATH/pkg/windows_amd64
.nil
curl -X OPTIONS http://example.org -i
レスポンスには、許可されたメソッドを持つ Allow
ヘッダが含まれています:
HTTP/1.1 200 OK
Allow: OPTIONS, GET, HEAD, POST
Cache-Control: max-age=604800
Date: Thu, 13 Oct 2016 11:45:00 GMT
Expires: Thu, 20 Oct 2016 11:45:00 GMT
Server: EOS (lax004/2813)
x-ec-custom-error: 1
Content-Length: 0
volumes: - name: cloudsql-oauth-credentials secret: secretName: cloudsql-oauth-credentials - name: ssl-certs hostPath: path: /etc/ssl/certs - name: cloudsql emptyDir: {}```- name: cloudsql-proxy image: gcr.io/cloudsql-docker/gce-proxy:1.11 command: ["/cloud_sql_proxy", "-instances=projectName:region:instance=tcp:3306", "-credential_file=/secrets/cloudsql/credentials.json"] ports: - containerPort: 3306 protocol: TCP securityContext: runAsUser: 2 # non-root user allowPrivilegeEscalation: false volumeMounts: - name: cloudsql-oauth-credentials mountPath: /secrets/cloudsql readOnly: true
```
func someApi() *graphql.Field { return &graphql.Field{ Type: someType, Args: graphql.FieldConfigArgument{ "a": &graphql.ArgumentConfig{ Type: graphql.String, }, "b": &graphql.ArgumentConfig{ Type: graphql.String, }, "c": &graphql.ArgumentConfig{ Type: graphql.NewList(graphql.Int), }, }, Resolve: func(p graphql.ResolveParams) (interface{}, error) {
return someType
}
```