James Mead floehopper

View keybase.md

Keybase proof

I hereby claim:

  • I am floehopper on github.
  • I am floehopper (https://keybase.io/floehopper) on keybase.
  • I have a public key whose fingerprint is B10D 919D E3B2 3B55 8FF3 80E1 CD75 D7BD 899B 8102

To claim this, I am signing this object:

View gist:9974356
1 2 3 4 5 6 7 8 9 10
$ npm install
 
# output ommitted for brevity
 
$ grunt mxmlc
Running "mxmlc:videojs_swf" (mxmlc) task
File "dist/video-js.swf" created.
 
Done, without errors.
jamesmead@floehopper.local:~/Code/videojs/video-js-swf:master$ grunt connect:dev
View videojs-test-output.txt
1 2 3 4 5 6 7 8 9 10
$ npm install
 
# output ommitted for brevity
 
$ grunt
 
# output ommitted for brevity
 
$ grunt test
Running "jshint:src" (jshint) task
View class_method_definitions.rb
1 2 3 4 5 6 7 8 9 10
# example 1
class Foo; end
def Foo.bar; end
 
 
# example 2
class Foo
def self.bar; end
end
View Gemfile
1 2 3 4
source 'https://rubygems.org'
 
gem 'activesupport'
gem 'mocha'
View singleton_class_ancestors.rb
1 2 3 4 5 6 7 8 9 10
# ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.2.0]
class X; end
X.ancestors # => [X, Object, Kernel, BasicObject]
X.singleton_class # => #<Class:X>
X.singleton_class.ancestors # => [Class, Module, Object, Kernel, BasicObject]
 
# ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin13.0]
class X; end
X.ancestors # => [X, Object, Kernel, BasicObject]
X.singleton_class # => #<Class:X>
View thing.rb
1 2 3 4 5 6 7 8 9 10
class Thing
def execute
stubbed_method
rescue MyException
retry
end
def stubbed_method
# do stuff
end
View atom.rb
1 2 3 4 5 6 7 8 9 10
class Atom
attr_reader :symbol
 
def initialize(symbol)
@symbol = symbol
end
 
def ==(other)
self.symbol == other.symbol
end
View factorial.rb
1 2 3 4 5
class Factorial
def execute(n, method = method(:execute))
n.zero? ? 1 : n * method.call(n - 1, method)
end
end
View gist:6131069
1 2 3 4 5 6 7 8 9 10
pp ActiveRecord::Base.connection.select("SHOW VARIABLES LIKE 'character%';").to_hash
# =>
[
{"Variable_name"=>"character_set_client", "Value"=>"utf8"},
{"Variable_name"=>"character_set_connection", "Value"=>"utf8"},
{"Variable_name"=>"character_set_database", "Value"=>"utf8"},
{"Variable_name"=>"character_set_filesystem", "Value"=>"binary"},
{"Variable_name"=>"character_set_results", "Value"=>"utf8"},
{"Variable_name"=>"character_set_server", "Value"=>"utf8"},
{"Variable_name"=>"character_set_system", "Value"=>"utf8"},
Something went wrong with that request. Please try again.