This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Parse | |
import Bolts | |
class AuthDelegate:NSObject, PFUserAuthenticationDelegate { | |
func restoreAuthenticationWithAuthData(authData: [String : String]?) -> Bool { | |
return true | |
} | |
} | |
let configuration = ParseClientConfiguration { (configuration) -> Void in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// PushStatus contains information about a push that was sent by an app. Its | |
// BSON format is stored directly in Mongo. Its JSON format is the REST format | |
// exposed to external developers, e.g. "_id" is mapped to "objectId", | |
// "_created_at" is mapped to "createdAt", etc. | |
type PushStatus struct { | |
// ObjectID is a string matching the standard Parse object id format. | |
ObjectID string `bson:"_id" json:"objectId"` | |
// CreatedAt contains the current modification time for this object. | |
CreatedAt TimeString `bson:"_created_at" json:"createdAt"` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8454 info install [email protected] | |
8455 verbose unsafe-perm in lifecycle false | |
8456 info [email protected] Failed to exec install script | |
8457 verbose stack Error: [email protected] install: `node-gyp rebuild` | |
8457 verbose stack Exit status 1 | |
8457 verbose stack at EventEmitter.<anonymous> (/opt/elasticbeanstalk/node-install/node-v4.3.0-linux-x64/lib/node_modules/npm/lib/utils/lifecycle.js:214:16) | |
8457 verbose stack at emitTwo (events.js:87:13) | |
8457 verbose stack at EventEmitter.emit (events.js:172:7) | |
8457 verbose stack at ChildProcess.<anonymous> (/opt/elasticbeanstalk/node-install/node-v4.3.0-linux-x64/lib/node_modules/npm/lib/utils/spawn.js:24:14) | |
8457 verbose stack at emitTwo (events.js:87:13) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ec2-user@ip-172-31-14-143 ~]$ cat npm-debug.log | |
0 info it worked if it ends with ok | |
1 verbose cli [ '/opt/elasticbeanstalk/node-install/node-v4.3.0-linux-x64/bin/node', | |
1 verbose cli '/opt/elasticbeanstalk/node-install/node-v4.3.0-linux-x64/bin/npm', | |
1 verbose cli 'install', | |
1 verbose cli 'sse4_crc32' ] | |
2 info using [email protected] | |
3 info using [email protected] | |
4 verbose config Skipping project config: /home/ec2-user/.npmrc. (matches userconfig) | |
5 verbose install initial load of /home/ec2-user/package.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mutation { | |
NewClass { | |
create(foo: "hello", bar: false, increment: 1) { | |
objectId, foo, bar, increment | |
} | |
} | |
} | |
mutation { | |
create(className: "NewClass", params: {foo: "Bar", bar: true, increment: 10}) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x00000009e040bec8 | |
Crashed: main | |
0 libobjc.A.dylib 0x18b8e97f4 objc_object::release() + 8 | |
1 CoreFoundation 0x18ce5a9a4 common_removeAllObjects + 156 | |
2 CoreFoundation 0x18cd4e9e0 -[__NSArrayM dealloc] + 28 | |
3 libobjc.A.dylib 0x18b8ea134 (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 836 | |
4 CoreFoundation 0x18cd46b18 _CFAutoreleasePoolPop + 28 | |
5 CoreFoundation 0x18ce16ce4 __CFRunLoopRun + 1580 | |
6 CoreFoundation 0x18cd46d94 CFRunLoopRunSpecific + 424 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl http://localhost:8080/app1 | |
# logs | |
# main middleware | |
# app1 middleware | |
$ curl http://localhost:8080/app2 | |
# logs | |
# main middleware | |
# app2 middleware |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% for type in types.implementing.Buildable %} | |
extension {{ type.name }} { | |
class Builder { | |
{% for member in type.variables %} | |
private var {{ member.name }}: {{member.typeName}}? | |
{% endfor %} | |
{% for member in type.variables %} | |
func set({{ member.name }}: {{member.typeName}}) -> Builder { | |
self.{{ member.name }} = {{ member.name }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET /retailers/v4/connections/vacancy?marketing_carrier=GBIO&departure_station=BGVARZOB&arrival_station=BGSOFCBS&departure_time=2018-10-01T11%3A30&arrival_time=2018-10-01T17%3A15¤cy=EUR&passengers%5B%5D%5Bpax%5D=1&passengers%5B%5D%5Btype%5D=PNOS HTTP/1.1 | |
Host: api.distribusion.com | |
Api-Key: 2QMcWJPgloYUC1UjdkpaGzZ3sUX2MHdBRQh1PNo8 | |
X-Busbud-Requestid: 2018092614331414df5d4bb815c4d093248fce396505a8273d64d2237ed6e2f779fb52dcb0ed+1537972431874 | |
X-Busbud-Purchaseid: 2796670 | |
X-Busbud-Partnerid: null | |
Accept: application/json | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST /api/v4/Travel/Availability HTTP/1.1 | |
Host: api.greyhound.travel | |
Authorization: eyJhbGciOiJSUzI1NiIsImtpZCI6IkVDRTc1QTNCRjAxQUJFQjQ0ODVFMEZEODQ0RjIyMTRENTVGNDlCMEMiLCJ0eXAiOiJKV1QiLCJ4NXQiOiI3T2RhT19BYXZyUklYZ19ZUlBJaFRWWDBtd3cifQ.eyJuYmYiOjE1NDQxMDQzODYsImV4cCI6MTU0NDEzNDM4NiwiaXNzIjoiaHR0cHM6Ly9hcGkuZ3JleWhvdW5kLnRyYXZlbC9hdXRob3Jpc2F0aW9uIiwiYXVkIjpbImh0dHBzOi8vYXBpLmdyZXlob3VuZC50cmF2ZWwvYXV0aG9yaXNhdGlvbi9yZXNvdXJjZXMiLCIyMDQ5Il0sImNsaWVudF9pZCI6IkJ1c0J1ZCIsImNsaWVudF9JYlVzZXIiOiJCQk5DIiwic2NvcGUiOlsiMjA0OSJdfQ.dW8-SOwkHoZs_0nMrMacxszvSIw1BI-rFwq-bJszAx3cijTcuPQcdMpBmVyzNv3_vFOvC5u_68eebQA5fH6c7VWT9enYbTeTZpCIxzrmJ-Rba1XHnuBv2Kl0txS27ciOMPQwM1NMedFjVuWe7TamcP1Bmg3jJiCj0HfNklVsxGcuei7AL8IKB_Zm33lCEp8VsqQzjcYZYrzDY8JzhURvge9X_5Trceqft5V4bNBzR4Oq1zf178c9poUvkDr62any_Jo3SNqcfMut7CAMm6LFSWYsGaUGKT62mR0Oo_oYJf-n-XT7bfVzJqfNrEzkP-8WJNQV_azvmMwQA-32Gb4nXA | |
Content-Type: application/json | |
X-Busbud-Requestid: 20181206135359eb86a174c379bf313262d5d091692cc6559760e1f0fe279aa96a1ea48aa1a6+1544104400338+1343934 | |
X-Bus |