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
| Gist for | |
| alias m='xwit -iconify' | |
| alias log='tail -f log/development.log -n 100' | |
| alias logp='tail -f log/production.log' | |
| alias rd='rdesktop 50.57.123.120 -u "administrator" -p "123456"' | |
| alias go='exit' | |
| alias shajin='ps -ef|grep ruby' | |
| alias kola='kill -9' | |
| alias pt='echo "Process at 3000 port is" && lsof -i tcp:3000|grep *.3000' |
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
| http://sirupsen.com/create-your-first-ruby-gem-and-release-it-to-gemcutter/ - Gem.. | |
| http://nithinbekal.com/2011/writing-ruby-gems-part-1-gem-specifications/ - Nithi's blog |
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
| http://www.techotopia.com/index.php/Ruby_Variable_Scope - scope and global variables |
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
| class ActsAsFollowerMigration < ActiveRecord::Migration | |
| def self.up | |
| create_table :follows, :force => true do |t| | |
| t.references :followable, :polymorphic => true, :null => false | |
| t.references :follower, :polymorphic => true, :null => false | |
| t.boolean :blocked, :default => false, :null => false | |
| t.timestamps | |
| end | |
| add_index :follows, ["follower_id", "follower_type"], :name => "fk_follows" |
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
| #To load the files under lib directory | |
| config.autoload_paths += Dir["#{config.root}/lib", "#{config.root}/lib/**/"] |
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
| Bang::Specification.new do |s| | |
| s.files = ['bang.rb'] | |
| s.test_file = 'bang_spec.rb' | |
| s.require_path = '.' | |
| 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
| class User | |
| bang :calculate_score => :score | |
| def calculate_score | |
| 100 # Removed fancy logic for presentational purposes | |
| end | |
| 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
| #puts nothing. |
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
| http://howtonode.org/grasshopper-shoutbox - Nodejs | |
| http://stackoverflow.com/questions/3527482/ruby-on-rails-and-node-js | |
| http://jeffkreeftmeijer.com/2010/experimenting-with-node-js/ | |
| http://geddyjs.org/ - frameword | |
| https://github.com/mde/geddy/wiki/the-two-minute-geddy-app - 2 minute geddy app | |
| http://stackoverflow.com/questions/5062614/how-to-decide-when-to-use-nodejs - nice explaining nodejs |
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
| Venice Canals | |
| Jungfraujoch - Switzerland | |
| Himalaya |
OlderNewer