Skip to content

Instantly share code, notes, and snippets.

Git Drill

master is stable

starting a new milestone

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
});
});
});
@KidkArolis
KidkArolis / github.css
Created July 31, 2012 12:31 — forked from andyferra/github.css
Github Markdown CSS - for Markdown Editor Preview
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
@KidkArolis
KidkArolis / gist:5472693
Created April 27, 2013 10:59
Convert quicktime screen recording to gif using ffmpeg
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
@KidkArolis
KidkArolis / index.js
Created August 1, 2013 11:19
requirebin sketch
// require something
var _ = require("lodash");
var Spinner = require("spin");
new Spinner({color:'#333', lines: 12}).spin(document.body);
@KidkArolis
KidkArolis / events.js
Created October 10, 2013 14:25
John Resig's on/off (aka addEventListener)
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) {
@KidkArolis
KidkArolis / 0_reuse_code.js
Created January 20, 2014 13:50
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console