Skip to content

Instantly share code, notes, and snippets.


Mike Knoop mikeknoop

View GitHub Profile
View gist:62ce3690b510576ef17c
mike keynote (short, 5 minutes)
jason, platform (activation, embeds)
bryan/james, making changes to zapier (things you can edit in admin, how2github, future of editing code)
mike, flow (progress, whats next)
Lightweight Backbone Cache
Mike Knoop, 2012 (,
Simply execute this script file sometime after you load Backbone.
It hooks into the Backbone sync function to give a lightweight local
cache for models and collections. Will work for both models and collections.
Only GET requests are eligible for cacheing and caches are stored by URL.
mikeknoop /
Created Feb 23, 2012
Backbone Chrome Extension
mikeknoop /
Created Feb 23, 2012
Backbone Chrome Extension
($, _, Backbone, MustacheWrapper, InitTemplate) ->
ZapsView = Backbone.View.extend
View partial_manifest.json
"browser_action": {
"default_icon": "icon_16.png",
"popup": "popup.html"
View gist:1921461
initRules: () ->
# Rules are children of reads. Setup the @rules collection, set a URL on the collection.
# then fetch all the children from the api
@rules = new Rules({})
@rules.url = () ->
return "#{@url()}/rules"
mikeknoop / examples.js
Created Mar 21, 2012 — forked from bryanhelmig/examples.js
EmailPie Samples
View examples.js
// An invalid domain.
"didyoumean": null,
"errors": [
"message": "No MX records found for the domain.",
"severity": 7
View gist:2934489
baseUrl: '/static/js/src',
app: 'app',
backbone: '../external/backbone/0.9.2/backbone',
backbonecache: 'backbone/cache/backboneCache', # coffee compiled
cookie: '../external/jquery/cookie/1.0.0/cookie',
error: 'error/error', # coffee compiled
escapesel: '../external/jquery/escapeSel/1.0.0/escapeSel',
View gist:3147976
appDir: "", # path relative to baseUrl where the app lives. Our app lives at the baseUrl so this is blank
baseUrl: "../../src/", # app path relative to the location of THIS build profile file.
dir: "../../build", # directory to put all the files in while build is happening (it shouldn't exist before build)
mainConfigFile: 'main.js', # make sure this matches the module below
modules: [
name: "main" # presumes your app config is in a file called main.js
You can’t perform that action at this time.