This is a test of subdirectories.
Clone this repo using git clone git://gist.github.com/1925815.git gist-1925815.
Note: You must do your editing on your local clone, not using the gist UI.
| maria.SetModel.subclass(checkit, 'TodosModel', { | |
| methods: { | |
| getDone: function() { | |
| return this.filter(function(todo) { | |
| return todo.isDone(); | |
| }); | |
| }, | |
| getUndone: function() { | |
| return this.filter(function(todo) { | |
| return !todo.isDone(); |
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <title>Video recording demo</title> | |
| <link rel="stylesheet" type="text/css" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css"> | |
| <link rel="stylesheet" type="text/css" href="style.css"> | |
| </head> | |
| <body> | |
| <div class="container"> |
| (function (global) { | |
| // TODO: Delegate to parent loader in various places | |
| // TODO: Canonicalization | |
| // TODO: Can we do better for 'eval'? | |
| /// Module loader constructor | |
| function Loader(parent, options) { | |
| // Initialization of loader state from options |
This is a test of subdirectories.
Clone this repo using git clone git://gist.github.com/1925815.git gist-1925815.
Note: You must do your editing on your local clone, not using the gist UI.
| /* | |
| // The default system module loader exposed by ES6 on the | |
| // global object. | |
| Object.system = { | |
| load: function(name, callback, errback) { | |
| // ... | |
| }, | |
| loaded: {} | |
| } | |
| */ |
| <!doctype html> | |
| <meta charset="utf-8"> | |
| <title>Using Showdown with and without jQuery: demo</title> | |
| <style> | |
| textarea, #preview { width: 500px; height: 150px; margin-bottom: 1em; padding: .5em 1em; overflow-y:auto} | |
| #preview { border: 1px solid #666; } | |
| </style> | |
| <link rel="first" href="http://mathiasbynens.be/notes/showdown-javascript-jquery" title="Using Showdown with and without jQuery"> | |
| <link rel="prefetch" href="http://mathiasbynens.be/notes/showdown-javascript-jquery" title="Using Showdown with and without jQuery"> | |
| <link rel="stylesheet" href="http://yandex.st/highlightjs/6.1/styles/default.min.css"> |
| /* | |
| ** Client side - /public/src/app.js | |
| */ | |
| var myApp = { | |
| // Collections | |
| Collections: { | |
| list: Backbone.Collection.extend() | |
| }, | |
| // Views |
| function meThinks(assertion) { | |
| return { | |
| shouldEqual: function(bool) { | |
| if ( assertion !== bool ) { | |
| throw new Error('FAIL'); | |
| } | |
| } | |
| }; | |
| } |