Skip to content

Instantly share code, notes, and snippets.

View jasonnoble's full-sized avatar

Jason Noble jasonnoble

View GitHub Profile
@jasonnoble
jasonnoble / gist:8797940
Created February 4, 2014 03:58
Dog Class
class Dog
def speak
"Bark"
end
end
@jasonnoble
jasonnoble / keybase.md
Created March 18, 2014 15:49
keybase.md

Keybase proof

I hereby claim:

  • I am jasonnoble on github.
  • I am jasonnoble (https://keybase.io/jasonnoble) on keybase.
  • I have a public key whose fingerprint is 79D9 33A8 A13D FC1C D05B 518E 1D63 EF2F 6062 9857

To claim this, I am signing this object:

@jasonnoble
jasonnoble / gist:e2f99e29ca6e3ec4ada8
Created May 25, 2014 05:18
Output of Device.ancestors (Ruby 2.1.2 / Rails 4.1.1)
2.1.2 :001 > puts Device.ancestors
Device
#<Module:0x007f81dac8e390>
ActiveRecord::Base
ActiveRecord::Store
ActiveRecord::Serialization
ActiveModel::Serializers::Xml
ActiveModel::Serializers::JSON
ActiveModel::Serialization
ActiveRecord::Reflection
class Cat
def speak
puts "Meow"
end
end
puts "Ruby is cool!"
puts "Do you like Ruby too?"
@jasonnoble
jasonnoble / number_guesser.rb
Created July 1, 2014 01:38
Number Guesser
#!/usr/bin/env ruby
# Set a random value
picked_number = Kernel.rand(5) + 1
# Set an initial guess
guess = 10
# Set tries to 0
tries = 0
@jasonnoble
jasonnoble / calculator_spec.rb
Created July 15, 2014 03:41
calculator_spec.rb
require 'rspec'
require './lib/calculator'
describe Calculator do
it 'should be a Calculator' do
expect(subject).to be_a(Calculator)
end
describe '#addition(number1, number2)' do
it 'handles adding the two positive numbers' do
@jasonnoble
jasonnoble / gist:90fd0ccab19449f2bbdb
Created September 9, 2014 16:31
DaVinci Coders T2 2014 Schedule
Week 1
2014-06-09 Monday
People Bingo
Toolbelt Intro
Pivotal Tracker Intro
2014-06-11 Wednesday
Warmup
@jasonnoble
jasonnoble / gist:2837b09cbe20a79eb233
Last active August 29, 2015 14:06
Angular workshop #rmr2014
git clone git://github.com/joerodriguez/athletes-api-rmr-2014
cd athletes-api-rmr-2014
bundle
bundle exec rake db:migrate
bundle exec rake db:seed
rails s
# Open http://localhost:3000/api/docs
# In a new terminal tab
git clone git://github.com/brendanbenson/ng-athlete
@jasonnoble
jasonnoble / gist:e9da698c84617228e928
Created September 25, 2014 02:51
My awesome code
puts "Hello Ruby!"