Skip to content

Instantly share code, notes, and snippets.


Duncan Smith notduncansmith

Block or report user

Report or block notduncansmith

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
notduncansmith /
Last active Aug 29, 2015
In-memory graph datastore with friendship and notification support in <100 lines
# Bring in static test data
data = require './data'
# Spin up graph store
Rel = require('./rel')()
# Set up the friendships
Rel.put [
notduncansmith /
Last active Aug 29, 2015
Dynamic template globals in Summit
Summit = require 'summit'
app = new Summit()
router = app.router()
router.get '/', (respond, views) ->
router.get '/theme/:theme', (app, req) ->
app.templateGlobals.theme = req.params.theme
View command.js
/* NOTE: Comments need to be in multiline format like this, instead of "// Comment" */
window.location = "web+sublime://~/working/"
You can’t perform that action at this time.