Skip to content

Instantly share code, notes, and snippets.

@meleyal
meleyal / 960.css
Created December 7, 2010 16:44
custom version of 960.gs
/*! ------------------------------------------------------------------------------------------------
* 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
@meleyal
meleyal / align-css-assignments.rb
Created November 26, 2010 11:37
Align CSS Assignments Textmate command
#!/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
@meleyal
meleyal / wesabe-startup.sh
Created September 13, 2010 20:45
wesabe startup script
#!/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!'
@meleyal
meleyal / git-recipes.sh
Created August 16, 2010 13:38
git recipes
# remove delete files
git rm $(git ls-files -d)
# delete remote branch
git push origin :branch-to-delete
@meleyal
meleyal / console.log
Created August 3, 2010 15:44
console.log textmate snippet
// Activation: Tab Trigger > log
console.log($1);
@meleyal
meleyal / hello-world-route.js
Created August 3, 2010 10:55
Hello world with route.js
route('#/hello').bind(myFunction);
function myFunction(){
alert('Hello world');
}
// route('#/hello').run();
var App={};
App._hashchange_last = '';
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Clouds</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
@meleyal
meleyal / regex: remove link search + replace
Created June 17, 2010 15:09
regex: remove link search + replace
@meleyal
meleyal / textmate-folder-pattern
Created June 17, 2010 12:50
Folder Pattern for Textmate to ignore log/doc/tmp
# Exclude log/doc/tmp
!.*/(\.[^/]*|log|doc|tmp|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$
# Original
!.*/(\.[^/]*|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$
@meleyal
meleyal / homebrew + mysql + mysql gem
Created June 9, 2010 15:43
homebrew + mysql + mysql gem
sudo gem install mysql -v 2.7 -- --with-mysql-dir=/usr/local/lib/mysql --with-mysql-config=/usr/local/bin/mysql_config