This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
route('#/hello').bind(myFunction); | |
function myFunction(){ | |
alert('Hello world'); | |
} | |
// route('#/hello').run(); | |
var App={}; | |
App._hashchange_last = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Activation: Tab Trigger > log | |
console.log($1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# remove delete files | |
git rm $(git ls-files -d) | |
# delete remote branch | |
git push origin :branch-to-delete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo 'starting mysql' | |
mysqld_safe & | |
echo 'starting pfc' | |
cd ~/code/wesabe/pfc | |
rails server -p 3001 & | |
echo 'starting brcm' | |
cd ~/code/wesabe/brcm-accounts-api | |
script/server & | |
echo 'ok, go!' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# | |
# Assignment block tidier, version 0.6. | |
# | |
# Copyright Chris Poirier 2006, 2008. | |
# Licensed under the Academic Free License version 3.0. | |
# | |
# This script can be used as a command for TextMate to align all of the equal signs | |
# within a block of text, as well as all variable declarations in languages like | |
# Objective-C and Java. When using it with TextMate, set the command input to |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! ------------------------------------------------------------------------------------------------ | |
* 960.css | |
* http://gist.github.com/732028 | |
* Custom version of http://960.gs/ | |
* Licensed under GPL and MIT | |
* | |
* Custom: | |
* - underscores > dashes | |
* - container > wrap | |
* - alpha > first |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<!-- | |
meleyal | |
http://meleyal.com | |
https://gist.github.com/810100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ | |
$.widget("ui.mywidget", { | |
options: { | |
autoOpen: true | |
}, | |
_create: function(){ | |
// by default, consider this thing closed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://www.erichynds.com/jquery/using-jquery-ui-widget-factory-bridge/ | |
var Widget = function(options, element){ | |
this.options = options; | |
this.element = element; | |
this._init(); | |
} | |
Widget.prototype = { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Name generating code | |
# Copyright (c) 2010 Ninite.com | |
# | |
# Released into the public domain - enjoy! | |
# | |
# Story at http://blog.ninite.com/post/620277259/how-ninite-was-named-by-a-computer-program | |
from datetime import datetime, date |