master is stable
git branch v0.9.8-dev
git checkout v0.9.8-dev
| (function($) { | |
| var app = $.sammy('#container', function() { | |
| this.get('/katalogas/auto/:id', function(context) { | |
| $.get('/katalogas/auto/id/this.params.id') | |
| .success(function() { | |
| //show the list | |
| }); | |
| }); | |
| }); |
| body { | |
| font-family: Helvetica, arial, sans-serif; | |
| font-size: 14px; | |
| line-height: 1.6; | |
| padding-top: 10px; | |
| padding-bottom: 10px; | |
| background-color: white; | |
| padding: 30px; } | |
| body > *:first-child { |
| "use strict"; | |
| /** | |
| * @author geoff | |
| */ | |
| var Marshal = (function() { | |
| var debug = false; | |
| var symbols; | |
| var marshal_major = 4, marshal_minor = 8; |
| // example | |
| Marshal.load(new Buffer("COOKIE_STRING", 'base64')); |
If the files in your filesystem looked like this
lib
underscore.js
backbone.js
backbone.marionette.js
backbone.wreqr.js
backbone.babysitter.js
| ffmpeg -ss 00:00:00.000 -i recording.mov -pix_fmt rgb24 -r 10 -t 00:00:10.000 recording.gif | |
| convert -layers Optimize recording.gif recording.gif |
| // require something | |
| var _ = require("lodash"); | |
| var Spinner = require("spin"); | |
| new Spinner({color:'#333', lines: 12}).spin(document.body); |
| function on(obj, type, fn) { | |
| if (obj.attachEvent) { | |
| obj['e'+type+fn] = fn; | |
| obj[type+fn] = function(){ obj['e'+type+fn]( window.event ); }; | |
| obj.attachEvent( 'on'+type, obj[type+fn] ); | |
| } else { | |
| obj.addEventListener( type, fn, false ); | |
| } | |
| } | |
| function off(obj, type, fn) { |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |