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
giovanni@thinkpad:~$ jitsu users confirm potomak XXX | |
info: Welcome to Nodejitsu | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command users confirm potomak XXX | |
info: Confirming user potomak | |
info: Great success! potomak is now confirmed. | |
info: User potomak confirmed | |
info: Would you like to log in now? | |
prompt: (yes/no): (yes) | |
info: Attempting to log in as potomak |
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
gem 'rails-api' | |
gem 'active_model_serializers' | |
gem_group :development, :test do | |
gem 'debugger' | |
gem 'rspec-rails' | |
gem 'shoulda-matchers' | |
gem 'factory_girl_rails' | |
end |
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 'eventmachine' | |
require 'em-http-request' | |
EM.run { | |
timer = EM::PeriodicTimer.new(60) do | |
http = EM::HttpRequest.new('http://nodeknockout.com/teams/new').get | |
http.errback { | |
puts 'Uh oh' | |
} |
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
FB.getLoginStatus Object {authResponse: undefined, status: "unknown"} | |
FB.login Object {authResponse: Object, status: "connected"} |
Online resources
- http://rubyonrails.org/ - Official Ruby on Rails site
- http://guides.rubyonrails.org/ - Rails Guides
- http://api.rubyonrails.org/ - Official API docs
- http://railscasts.com/ - RailsCasts
Books
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
[...] | |
npm info build /home/giovanni/.hoodie/cache/my-first-hoodie/node_modules/hoodie-server/node_modules/browserify/node_modules/module-deps | |
npm verb linkStuff [ false, | |
npm verb linkStuff false, | |
npm verb linkStuff false, | |
npm verb linkStuff '/home/giovanni/.hoodie/cache/my-first-hoodie/node_modules/hoodie-server/node_modules/browserify/node_modules' ] | |
npm info linkStuff module-deps@1.3.0 | |
npm verb linkBins module-deps@1.3.0 | |
npm verb link bins [ { 'module-deps': 'cmd.js' }, | |
npm verb link bins '/home/giovanni/.hoodie/cache/my-first-hoodie/node_modules/hoodie-server/node_modules/browserify/node_modules/.bin', |
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 'net/http' | |
require 'json' | |
hash = { 'follow' => 'http://letsrevolutionizetesting.com/challenge?id=47526821' } | |
begin | |
uri = URI(hash['follow']) | |
req = Net::HTTP::Get.new(uri) | |
req['Accept'] = 'application/json' |
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
-- accounts | |
-- ======== | |
-- id | |
-- | |
-- pricing_plans | |
-- =========== | |
-- id | |
-- price_in_cents | |
-- |
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
DEPRECATION WARNING: It looks like you are eager loading table(s) (one of: contacts, additional_infos, groups, users) that are referenced in a string SQL snippet. For exa | |
mple: | |
Post.includes(:comments).where("comments.title = 'foo'") | |
Currently, Active Record recognizes the table in the string, and knows to JOIN the comments table to the query, rather than loading comments in a separate query. However, | |
doing this without writing a full-blown SQL parser is inherently flawed. Since we don't want to write an SQL parser, we are removing this functionality. From now on, you | |
must explicitly tell Active Record when you are referencing a table from a string: | |
Post.includes(:comments).where("comments.title = 'foo'").references(:comments) |