This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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: [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |