most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat| autocmd BufRead,BufNewFile *_spec.rb | |
| \ map ;t :w\|:!rspec --no-color %<cr> | |
| autocmd BufRead,BufNewFile *_test.rb | |
| \ map ;t :w\|:!ruby -Ilib %<cr> |
| class Api::RegistrationsController < Api::BaseController | |
| respond_to :json | |
| def create | |
| user = User.new(params[:user]) | |
| if user.save | |
| render :json=> user.as_json(:auth_token=>user.authentication_token, :email=>user.email), :status=>201 | |
| return | |
| else |
| function Track(src, spriteLength, audioLead) { | |
| var track = this, | |
| audio = document.createElement('audio'); | |
| audio.src = src; | |
| audio.autobuffer = true; | |
| audio.load(); | |
| audio.muted = true; // makes no difference on iOS :( | |
| /* This is the magic. Since we can't preload, and loading requires a user's | |
| input. So we bind a touch event to the body, and fingers crossed, the |
| # 2010-10-01 | |
| # | |
| # Mac OS X 10.6.3 | |
| # Homebrew 0.7 | |
| # Xcode 3.2.4 | |
| # Git 1.7.3.1 | |
| # RVM 1.0.12 | |
| # Ruby 1.9.2, 1.8.7 | |
| # Rails 3.0.0 | |
| # Passenger 3.0.0.pre4 |
| #flash_notice { | |
| width:400px; | |
| padding:10px; | |
| background:#dbffca; | |
| color:#060; | |
| height:30px; | |
| line-height:30px; | |
| border:1px solid #060; | |
| font-family:arial, helvetica, sans-serif; | |
| font-size:12pt; |