The course will have six weeks of lectures and assignments, followed by a final exam.
- Distributed shortest-path routing -- sending email messages
The course will have six weeks of lectures and assignments, followed by a final exam.
Yahoo! provides its GeoPlanet data as three separate TSV files, available for download here.
That's a database with some 17 million records:
belongs_to association does not automatically save the object. It does not save the associated object either.has_one association, that object is automatically saved (in order to update its foreign key).has_one association) is unsaved (that is, new_record? returns true) then the child objects are not saved. They will automatically when the parent object is saved.| DROP TABLE IF EXISTS survey_sessions; | |
| -- Imagine a table with survey sessions | |
| -- token: some id or token to access a survey | |
| -- answers: a key value store for answers | |
| CREATE TABLE survey_sessions ( | |
| token text, | |
| answers hstore); | |
| -- We need some data to play with | |
| INSERT INTO survey_sessions (token, answers) VALUES ('9IaxxP', 'a=>1, b=>2'); |
| gem 'pg' | |
| group :development do | |
| gem 'ruby-debug' | |
| end | |
| gem 'rake', '~> 0.8.7' | |
| gem 'devise' | |
| gem 'oa-oauth', :require => 'omniauth/oauth' | |
| gem 'omniauth' | |
| gem 'haml' | |
| gem 'dynamic_form' |
| <?php | |
| /* | |
| Template Name: Landing | |
| */ | |
| // Add custom body class to the head | |
| add_filter( 'body_class', 'add_body_class' ); | |
| function add_body_class( $classes ) { | |
| $classes[] = 'landing-page'; |
| class Integer | |
| N_BYTES = [42].pack('i').size | |
| N_BITS = N_BYTES * 16 | |
| MAX = 2 ** (N_BITS - 2) - 1 | |
| MIN = -MAX - 1 | |
| end | |
| p Integer::MAX #=> 4611686018427387903 | |
| p Integer::MAX.class #=> Fixnum | |
| p (Integer::MAX + 1).class #=> Bignum |
| require 'spec_helper' | |
| require 'rake' | |
| RSpec.describe Api::V1::PostsController, :vcr, record: :new_episodes, :type => :api do | |
| context "elastic search test", elasticsearch: true, commit: true do | |
| before do | |
| @post = FactoryGirl.create(:post, first_name: "August", last_name: "Rush", email: "August.Rush@augustrush.com", event: "Rock Concert") | |
| end | |