Skip to content

Instantly share code, notes, and snippets.

James Mead floehopper

Block or report user

Report or block floehopper

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
floehopper / Gemfile
Last active Aug 29, 2015
Teardown sequence for Mocha / MiniTest / ActiveSupport
View Gemfile
source ''
gem 'activesupport'
gem 'mocha'
View class_method_definitions.rb
# example 1
class Foo; end
def; end
# example 2
class Foo
def; end
View gist:9974356
$ 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
floehopper / videojs-test-output.txt
Created Apr 4, 2014
Building and running video.js tests
View videojs-test-output.txt
$ npm install
# output ommitted for brevity
$ grunt
# output ommitted for brevity
$ grunt test
Running "jshint:src" (jshint) task

Keybase proof

I hereby claim:

  • I am floehopper on github.
  • I am 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 passenger-lib-rack-name-error.txt
*** Exception NameError in PhusionPassenger::Rack::ApplicationSpawner (undefined method `ssl?' for class `Sinatra::Request') (process 21881, thread #<Thread:0x7f7c50c932d0>):
from /home/webhooks/app/vendor/gems/ruby/1.8/gems/sinatra-1.4.5/lib/sinatra/base.rb:49
from /home/webhooks/app/vendor/gems/ruby/1.8/gems/sinatra-1.4.5/lib/sinatra.rb:1:in `require'
from /home/webhooks/app/vendor/gems/ruby/1.8/gems/sinatra-1.4.5/lib/sinatra.rb:1
from ./app.rb:5:in `require'
from ./app.rb:5
from `require'
from /usr/lib/ruby/1.8/rack/builder.rb:46:in `instance_eval'
from /usr/lib/ruby/1.8/rack/builder.rb:46:in `initialize'
floehopper / patches-for-rails-and-rack-for-argument-error-invalid-byte-sequence.rb
Last active Aug 29, 2015
Patches for Rails and Rack for ArgumentError: invalid byte sequence
View patches-for-rails-and-rack-for-argument-error-invalid-byte-sequence.rb
# Based on these Rack commits [1,2] which originated from this Rack PR [3] and
# mentioned in this Rails PR [4].
# [1]:
# [2]:
# [3]:
# [4]:
require 'rack/utils'
floehopper / handle-google-apps-invoice.js
Created May 2, 2015
Spike on automatically saving Google Apps invoice attachment from Gmail into Google Drive using Google App Script
View handle-google-apps-invoice.js
function myFunction() {
var threads ="label:inbox subject:'Google Enterprise: Your invoice is attached'");
for (var threadIndex = 0 ; threadIndex < threads.length; threadIndex++) {
var messages = threads[threadIndex].getMessages();
if (messages.length == 0) {
Logger.log('No messages found in thread.');
var message = messages[0];
var attachments = message.getAttachments();
floehopper /
Created May 12, 2015
Smart Answer - Rendering Date Questions

Smart Answer Flows


          ::DateQuestionPresenter (undefined)
View Gemfile
source ''
gem 'minitest'
gem 'webmock'
You can’t perform that action at this time.