This file contains hidden or 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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
This file contains hidden or 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
| # baseline REE environment settings for server environments | |
| # http://www.rubyenterpriseedition.com/documentation.html#_garbage_collector_performance_tuning | |
| ## ruby defaults | |
| # RUBY_HEAP_MIN_SLOTS=10000 | |
| # RUBY_HEAP_SLOTS_INCREMENT=10000 | |
| # RUBY_HEAP_SLOTS_GROWTH_FACTOR=1.8 | |
| # RUBY_GC_MALLOC_LIMIT=8000000 | |
| # RUBY_HEAP_FREE_MIN=4096 |
This file contains hidden or 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
| if ur.save | |
| @following = @user.following | |
| format.html | |
| format.json { render :json => ur, :status => :ok } | |
| else | |
| format.html | |
| format.json { render :json => ur.errors, :status => :unprocessable_entity } | |
| end |
This file contains hidden or 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
| gem "ajaxful_rating", :git => "[email protected]:bazaarlabs/ajaxful-rating.git" |
This file contains hidden or 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 get_bundle(){ | |
| bundle_dir="/Library/Application\ Support/TextMate/Bundles" | |
| mkdir -p $bundle_dir | |
| bundle_name=$(echo -e $1 | grep -o -P "[\w\.]+$" | sed -e 's/\.git$//g' -e 's/\.tmbundle//g') | |
| checkout="git clone $1 $bundle_dir/$bundle_name.tmbundle" | |
| dest=$bundle_dir/$bundle_name.tmbundle | |
| rm -Rf $dest | |
| git clone $1 $dest | |
| osascript -e 'tell app "TextMate" to reload bundles' | |
| } |
This file contains hidden or 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
| includes: { | |
| backbone: { | |
| config: [ "sync" ], | |
| helpers: | |
| [ "backbone-plugin-init", | |
| "jquery-template-loader", | |
| "jquery-upload-data" ], | |
| plugins: { | |
| uploader: [ | |
| { |
This file contains hidden or 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
| --- | |
| backbone: | |
| :context: | |
| :layouts: | |
| - content | |
| :files: | |
| - https://github.com/douglascrockford/JSON-js/blob/master/json2.js | |
| - http://documentcloud.github.com/underscore/underscore.js | |
| - http://documentcloud.github.com/backbone/backbone.js |
This file contains hidden or 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
| gem install abstract | |
| gem install actionmailer | |
| gem install actionpack | |
| gem install actionwebservice | |
| gem install activemodel | |
| gem install activerecord | |
| gem install activeresource | |
| gem install activesupport | |
| gem install archive | |
| gem install arel |
This file contains hidden or 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
| puts :test |
This file contains hidden or 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
| development: | |
| port: 3312 | |
| mem_limit: 1024M | |
| max_matches: 10000 | |
| morphology: stem_en | |
| retry_stale: true | |
| delta: | |
| strategy: datetime | |
| threshold: <%= 2.minutes.to_i %> | |
NewerOlder