Skip to content

Instantly share code, notes, and snippets.

@mshwery
mshwery / index.js
Last active November 1, 2017 15:56
requirebin sketch
// Welcome! require() some modules from npm (like you were using browserify)
// and then hit Run Code to run your code on the right side.
// Modules get downloaded from browserify-cdn and bundled in your browser.
const Topo = require('topo')
const quals = [
{
Name: 'Blah',
QuestionID: 999
},
@mshwery
mshwery / Procfile
Created May 6, 2019 13:59
Use Heroku's release feature to deploy Typescript NodeJS sourcemaps to Sentry. So you can properly debug transpiled Typescript files!
release: bash ./release-sentry.sh
web: npm start
@mshwery
mshwery / machine.js
Last active January 19, 2022 16:48
Generated by XState Viz: https://xstate.js.org/viz
const needsEmail = (context, _event) => !Boolean(context.email)
const meetsCriteria = (context, _event) => Boolean(context.email)
const widgetMachine = Machine({
id: 'widget',
initial: 'hello',
context: { email: null },
states: {
hello: {