made with esnextbin
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="[add your bin description]" /> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
</body> |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
</body> | |
</html> |
This file contains 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
var Model = require('store-model'); | |
var Store = require('datastore'); | |
var Enumerable = require('enumerable-component'); | |
var User = Model({ | |
properties: [{ | |
username: { type: 'string' } | |
}] | |
}); |
This file contains 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
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({ |
This file contains 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
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) |
This file contains 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
# 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 |
This file contains 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
#!/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 |
This file contains 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
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__'] |
This file contains 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 { | |
EventBridgeLambda, | |
EventsQueue, | |
FilterPolicyType, | |
getResourceNameWithPrefix, | |
LambdaFunction, | |
QueueLambda, | |
relativeRootPath, | |
SNSLambda | |
} from '@getcaya/infra' |
OlderNewer