Skip to content

Instantly share code, notes, and snippets.

View jspies's full-sized avatar

Jonathan Spies jspies

View GitHub Profile
@jspies
jspies / tests.js
Created March 19, 2019 23:37
Test shim
const glob = require("glob");
(async () => {
const matches = glob.sync("**/*_test.mjs");
for (const match of matches) {
await import(`../${match}`)
}
run();
})()
@jspies
jspies / install
Created March 19, 2019 23:31
Prep for CF Demo
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
nvm install 11.4
npm install serverless -g
serverless create --template cloudflare-workers-enterprise —path demo
const path = require('path');
module.exports = {
entry: {
hello: path.join(__dirname, './src/handlers/hello.ts')
},
resolve: {
extensions: ['.ts', '.js']
},
module: {

Keybase proof

I hereby claim:

  • I am jspies on github.
  • I am jspies (https://keybase.io/jspies) on keybase.
  • I have a public key ASC5crRFyQVXTAUGMtvR3KpoH4j3MZXo8ADGUEvUEHMCxQo

To claim this, I am signing this object:

@jspies
jspies / gist:3345388
Created August 14, 2012 01:13
mine gadget
[
{
id: 63679,
name: null,
guid: "a00a766a-404a-4cd7-b45c-b3643021d1b2",
description: null,
tier: null,
point_cost: null,
skill_type: "Buff",
chain_skill_guid: null,
// loop through the 'paper' variable from Raphael JS and build up the JSON object describing all images and paths within it.
loadJSON = function(paper, json) {
var set = paper.set();
$.each(json, function(index, node) {
try {
var el = paper[node.type]().attr(node);
set.push(el);
} catch(e) {}
});
return set;