Skip to content

Instantly share code, notes, and snippets.

once upon a time
a long time ago
there was a little boy and girl
their names were Tim and Rose
Tim was six years old and Rose was five
Tim had black hair and blue eyes
Rose had red hair that hung down to her waist
tickle tickle tickle
and green eyes like the sea
@krisl
krisl / index.js
Last active July 31, 2016 07:05
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 yo = require('yo-yo');
const {observable, autorun, computed} = require("mobx");
const appState = observable({
total: function() { console.log('TOT'); return sumChildren(this.sections) },
sections: [
{
@krisl
krisl / index.js
Last active July 31, 2016 02:52
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 yo = require('yo-yo');
const {observable, autorun, computed} = require("mobx");
const appState = observable({
name: "Susan",
age: 40,
total: function() { console.log('TOT'); return sumChildren(this.sections) },
@krisl
krisl / app.rb
Last active August 29, 2015 14:14 — forked from Integralist/app.rb
require "json"
require "sinatra/base"
class ApplicationController < Sinatra::Base
helpers ApplicationHelper
set :views, File.expand_path("../../views", __FILE__)
set :public_folder, File.expand_path("../../", __FILE__)
set :server, :thin
connections = []