I hereby claim:
- I am mikefrey on github.
- I am mikefrey (https://keybase.io/mikefrey) on keybase.
- I have a public key ASBcNfSA2N0Cb7O6eoPfoJnCLXgjGokm9MdhvbjllGw5zAo
To claim this, I am signing this object:
| const SESSION_ID = '<INSERT SESSION ID HERE>' | |
| const URL = require('url') | |
| const URLSearchParams = URL.URLSearchParams | |
| const https = require('https') | |
| async function doRequest(urlString, headers) { | |
| const url = URL.parse(urlString) | |
| const options = { | |
| hostname: url.hostname, | |
| port: url.port, |
I hereby claim:
To claim this, I am signing this object:
| // +build ignore | |
| package main | |
| import ( | |
| "io/ioutil" | |
| "log" | |
| "os" | |
| "path/filepath" | |
| "strconv" |
| { | |
| "nodes": [ | |
| { "id": 1, "x": 40, "y": 40 }, | |
| { "id": 2, "x": 80, "y": 40 }, | |
| { "id": 3, "x": 120, "y": 40 }, | |
| { "id": 4, "x": 160, "y": 40 }, | |
| { "id": 5, "x": 200, "y": 40 }, | |
| { "id": 6, "x": 240, "y": 40 }, | |
| { "id": 7, "x": 280, "y": 40 }, | |
| { "id": 8, "x": 320, "y": 40 }, |
| { | |
| plugin: { | |
| register: './app/plugins/s3-upload-token', | |
| options: { | |
| accessKey: 'YOURACCESSKEY', | |
| secretKey: 'YOURSECRETKEY', | |
| photoBucket: 'YOURBUCKET', | |
| s3Policy: { | |
| expiration: 10 * 60 * 1000, // 10 min | |
| conditions: [ |
| /* | |
| Loads and registers routes automatically. | |
| USAGE | |
| { | |
| register: require('../app/plugins/route-loader'), | |
| options: { | |
| pattern: 'app/routes/*.js' | |
| } |
| // dimensions Cherry MX connector | |
| var c_corr = 0.4 // tolerance | |
| var c_horiz = 1.1 // horizontal bar width | |
| var c_vert = 1.0 // vertical bar width | |
| var c_dia = 4 // cross width | |
| var c_depth = 7 // connector depth | |
| var c_space = 7 // height of hollow inside | |
| var c_inset = 0.75 // distance connector start to keycap base | |
| // stuff |
| { | |
| init: function(elevators, floors) { | |
| var pickup = {up:[], down:[]} | |
| var topFloor = floors.length - 1 | |
| var bottomFloor = 0 | |
| console.log(floors[0]) | |
| // setup floors | |
| floors.forEach(function(floor, i) { | |
| pickup.up[i] = false | |
| pickup.down[i] = false |
| describe('TaskRunner', function () { | |
| var scope | |
| var TR | |
| var $q | |
| var success | |
| var error | |
| function MockTasks() { | |
| this.tasks = [] | |
| this.dfds = [] |
| var obj = { fn:function() { return 'Wooo!' } } | |
| JSON.stringify(obj) // '{}' | |
| obj.fn.toJSON = function() { return this() } | |
| JSON.stringify(obj) // '{"fn":"Wooo!"}' |