I hereby claim:
- I am agonbina on github.
- I am agonbina (https://keybase.io/agonbina) on keybase.
- I have a public key whose fingerprint is 6F32 0892 FFBC 0914 241C 8B6E 16F2 8995 9FC8 8F62
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import { | |
| EventBridgeLambda, | |
| EventsQueue, | |
| FilterPolicyType, | |
| getResourceNameWithPrefix, | |
| LambdaFunction, | |
| QueueLambda, | |
| relativeRootPath, | |
| SNSLambda | |
| } from '@getcaya/infra' |
| function ensureRefs (vm, type) { | |
| if (!vm[type]) { | |
| vm[type] = Object.create(null) | |
| vm[type]['__handlers__'] = Object.create(null) | |
| } | |
| } | |
| function bind (vm, { type, key, source }) { | |
| const handlers = vm[type]['__handlers__'] |
made with esnextbin
| #!/bin/bash | |
| if [ "$GIT_SSH_KEY" != "" ]; then | |
| echo "Cleaning up SSH config" >&1 | |
| echo "" >&1 | |
| # Now that npm has finished running, | |
| # we shouldn't need the ssh key/config anymore. | |
| # Remove the files that we created. | |
| rm -f ~/.ssh/config | |
| rm -f ~/.ssh/deploy_key |
| # Framework | |
| A constructor that will hold the global state of an application. | |
| ```js | |
| function Framework(options) { | |
| this.version = options.v || 'v1' | |
| } | |
| ``` | |
| The following sections describe the concepts we can bundle in the Framework. | |
| ### SESSION |
| var Map = require('indexed-map') | |
| var Store = require('datastore') | |
| var rooms = Map() | |
| var keys = Map() | |
| var equipment = Map() | |
| var equipmentSpecs = Map() | |
| rooms.insert('keys', keys) | |
| rooms.insert('equipment', equipment) |
| var Vue = require('vue') | |
| var sortableMixin = require('vue-sortable-mixin') | |
| var appTemplate = | |
| '<ul>' + | |
| '<li v-repeat="positions">{{$index}} : {{$value}}<li>' + | |
| '</ul>'; | |
| var app = new Vue({ |
| var Model = require('store-model'); | |
| var Store = require('datastore'); | |
| var Enumerable = require('enumerable-component'); | |
| var User = Model({ | |
| properties: [{ | |
| username: { type: 'string' } | |
| }] | |
| }); |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset=utf-8 /> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| </body> | |
| </html> |