Skip to content

Instantly share code, notes, and snippets.

class ExampleController < ApplicationController
def create
# something that calls private method
# ...
end
private
def private_method
params.

Keybase proof

I hereby claim:

  • I am wallace on github.
  • I am jonathanwallace (https://keybase.io/jonathanwallace) on keybase.
  • I have a public key whose fingerprint is F315 CDC7 D1B8 EFA2 BECA 1312 2F29 B66F E58B 717D

To claim this, I am signing this object:

simple:byebug jonathanwallace$ be rake test
/opt/boxen/rbenv/versions/2.1.0-preview1/bin/ruby -w -Ilib test/test_helper.rb
/opt/boxen/rbenv/versions/2.1.0-preview1/lib/ruby/gems/2.1.0/gems/debugger-linecache-1.2.0/lib/linecache19.rb:379: warning: assigned but unused variable - lines
Run options: --seed 6875
# Running:
dyld: lazy symbol binding failed: Symbol not found: _rb_funcall2
Referenced from: /Users/jonathanwallace/Documents/projects/byebug/lib/byebug.bundle
Expected in: flat namespace
simple:~ jonathanwallace$ irb
[1] pry(main)> hello = nil
=> nil
[2] pry(main)> def hello
[2] pry(main)* puts 'ehloo'
[2] pry(main)* end
=> nil
[3] pry(main)> hello
=> nil
[4] pry(main)> hello()
simple:puppet-weechat jonathanwallace$ ./script/cibuild
Using rake (10.1.0)
Using addressable (2.3.5)
Using ansi (1.4.3)
Using json_pure (1.8.0)
Using hiera (1.2.1)
Using highline (1.6.19)
Using json (1.8.0)
Using thor (0.18.1)
Using librarian-puppet (0.9.9)
@wallace
wallace / gist:6127633
Last active December 20, 2015 11:59 — forked from jeremiaheb/gist:6124581
class StationLog < ActiveRecord::Base
belongs_to :boat_log
has_many :rep_logs, :dependent => :destroy
accepts_nested_attributes_for :rep_logs, :reject_if => lambda { |a| a[:replicate].blank? }, :allow_destroy => true
EARTH_RADIUS = 6371000 # Earth's radius in meters
# convert degrees to radians
def self.convDegRad(value)
# rename the extracted dump files to be in your local database name
$ mv dump/exported_database_name/ dump/my_local_database_name
# restore using the appropriate port. assume that foreman is started and running
$ mongorestore dump --port 28018
def group_length(tier_level)
return "" if tier_level.blank?
@group_instance_variable[tier_level].length
end
There was a ArgumentError while loading debugger.gemspec:
Illformed requirement [{:git=>"https://github.com/tmm1/pygments.rb.git"}] from
/Users/jonathanwallace/Documents/projects/debugger/debugger.gemspec:23:in `block in <main>'
Vector3 floorNormal = new Vector3(0.0f,1.0f, 0.0f);
foreach(ContactPoint currentPoint in collision.contacts) {
if (currentPoint.normal.y != floorNormal.y) {
IsOnGround = false;
}
}