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
class CreateUserProfiles < ActiveRecord::Migration | |
def self.up | |
create_table :user_profiles do |t| | |
t.string :locale, :default => :es | |
t.string :glucose_test_unit, :default => :mgdl | |
t.string :location | |
t.references :user | |
t.timestamps |
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 python2.6 | |
""" | |
About | |
===== | |
Convert Texmate snippets into snipmate compatible snippets | |
http://www.vim.org/scripts/script.php?script_id=2540 | |
http://macromates.com/ |
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
Failure/Error: @user_profile = @user.create_user_profile(@attr) | |
ActiveRecord::RecordNotSaved: | |
Failed to remove the existing associated user_profile. The record failed to save when after its foreign key was set to nil. |
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
ruby -rwebrick -e'WEBrick::HTTPServer.new(:Port => 3000, :DocumentRoot => Dir.pwd).start' |
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
defaults write com.apple.dock itunes-notifications -bool TRUE | |
defaults write com.apple.dock notification-always-show-image -bool TRUE | |
killall Dock |
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
require 'nanoc3/tasks' | |
desc 'Compress CSS files in output/style directory using YUI Compressor' | |
task :css do | |
puts `find output/css -name '*.css' -exec java -jar ./lib/yuicompressor-2.4.2.jar --type css '{}' -o '{}' \\;` | |
end | |
desc 'Compress JavaScript files in output/script directory using YUI Compressor' | |
task :js do | |
puts `find output/js -name '*.js' -exec java -jar ./lib/yuicompressor-2.4.2.jar --type js '{}' -o '{}' \\;` |
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
# Vars | |
local DOTFILES="$HOME/Dropbox/shell/dotfiles" | |
export LS_COLORS="di=34;40:ln=35;40:so=32;40:pi=33;40:ex=31;40:bd=34;46:cd=34;43:su=0;41:sg=0;46:tw=0;42:ow=0;43:" | |
export EDITOR='vim' | |
# Load aliases files, ZSHuery and VCS info | |
for config_file ($DOTFILES/**/aliases.zsh) source $config_file | |
source $DOTFILES/zsh/zshuery/zshuery.sh | |
source $DOTFILES/zsh/vcsinfo.sh |
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
jQuery(function() { | |
jQuery('a').bind('click.custom_namespace', function() { | |
alert("Oh my god, I'm gonna be unbinded later!"); | |
}); | |
jQuery('a').bind('click', function() { | |
alert("I'm Chuck Norris, and I approve this bind."); | |
}); | |
jQuery('a').unbind('click.custom_namespace'); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<widget xmlns="http://www.w3.org/ns/widgets" | |
xmlns:gap="http://phonegap.com/ns/1.0" | |
id="com.viavansi" | |
version="0.2"> | |
<!-- Info --> | |
<name>PhoneGap Sample</name> | |
<description> | |
PhoneGap API Sample |
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
Add a shell variable called `TM_TODO_IGNORE`, with a regEx value like: `jquery.mobile.1.0.js|phonegap.js|jquery-1.6.4.js|jquery.mobile.js` |