Skip to content

Instantly share code, notes, and snippets.

@reedspool
reedspool / Game-of-Life---D3.markdown
Created July 21, 2014 05:27
A Pen by Reed Spool.
Warning! PATH is not properly set up, '/Users/reed/.rvm/gems/ruby-1.9.2-p318@rails3tutorial/bin' is not at first place,
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
to fix temporarily in this shell session run: 'rvm use ruby-1.9.2-p318@rails3tutorial'.
Downloading https://get.rvm.io
Turning on auto dotfiles mode.
Downloading https://github.com/wayneeseguin/rvm/archive/stable.tar.gz
curl: (23) Failed writing body (0 != 861)
@reedspool
reedspool / OUTPUT: rvm get stable
Last active August 29, 2015 14:05
RVM Troubles
Warning! PATH is not properly set up, '/Users/reed/.rvm/gems/ruby-1.9.2-p318@rails3tutorial/bin' is not at first place,
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
to fix temporarily in this shell session run: 'rvm use ruby-1.9.2-p318@rails3tutorial'.
Downloading https://get.rvm.io
Downloading https://github.com/wayneeseguin/rvm/archive/stable.tar.gz
@reedspool
reedspool / designer.html
Last active August 29, 2015 14:07
designer
<link rel="import" href="../ace-element/ace-element.html">
<link rel="import" href="../chart-js/chart-js.html">
<link rel="import" href="../speech-mic/speech-mic.html">
<link rel="import" href="../core-ajax/core-ajax.html">
<polymer-element name="my-element">
<template>
<chart-js kind="Bar" datastring="200,300,400,600,40" id="chart_js"></chart-js>
<speech-mic id="speech_mic"></speech-mic>
@reedspool
reedspool / machine.js
Created March 19, 2021 18:24
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@reedspool
reedspool / machine.js
Last active April 12, 2021 06:06
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
/**
* Nunjucks template rendering hyperscript extension
*
* Adds command `render <expr> [with <namedArgumentList>] [into <expr>]`
*
* Expression may be an element or a pre-compiled nunjucks template (via `compile template`)
*
* ex:
* `<template id="tmpl-my-template">Hello, {{ hello }}</template>`
* `render #tmpl-my-template with (hello: 'world') into <body />`