Skip to content

Instantly share code, notes, and snippets.

@logankoester
logankoester / rails.vim
Created October 4, 2011 20:34
Useful Rails.vim macros
" Factories and Configuration
Rnavcommand config config -suffix=.yml -default=application
Rnavcommand factory spec/factories test/factories -suffix=.rb -default=model()
" Backbone
Rnavcommand bmodel app/assets/javascripts/backbone/models -suffix=.coffee -default=model()
Rnavcommand bview app/assets/javascripts/backbone/views -suffix=.coffee
" Apotomo Widgets (Cells)
Rnavcommand widget app/widgets -suffix=_widget.rb
@cmonyuk
cmonyuk / gist:868882
Created March 14, 2011 07:49
PHOTON Text Flyer
Saturday April 30, 2011
Wizard Crew Promotions proudly presents
*** PHOTON ***
An Immersive Visual Experience
Wizard Crew is back with our Spring event!
If you enjoyed TECHNOLUST, Back2Bassikz, and Snowmageddon last year, you won't want to miss this.
Musical Performances by
@ioseb
ioseb / gist:69058
Created February 23, 2009 17:04
JavaScript array chunk function
function arrayChunk(array, size) {
var start = 0, result = [], chunk = [];
while((chunk = array.slice(start, start += size)).length) {
result.push(chunk);
}
return result;
}