I hereby claim:
- I am mwean on github.
- I am mwean (https://keybase.io/mwean) on keybase.
- I have a public key ASCLjDQq9jv6vHfskj0RVFu-zuUe1kfbx2rjyR9ExZRx8go
To claim this, I am signing this object:
class Bottles | |
def song | |
verses(99, 0) | |
end | |
def verses(high, low) | |
high.downto(low).map { |n| verse(n) }.join("\n") | |
end | |
def verse(n) |
I hereby claim:
To claim this, I am signing this object:
CREATE INDEX index_description_on_icd_codes ON icd_codes USING gin(to_tsvector(description)) |
#!/usr/bin/env ruby | |
project_root = `git rev-parse --show-toplevel`.strip | |
git_status = `git status --porcelain --untracked-files=all`.split("\n") | |
changed_files = git_status.map { |line| line[3..-1] } | |
grouped_specs = Hash.new { |hash, key| hash[key] = [] } | |
changed_files.select { |file| file =~ /spec/ }.each do |spec| | |
project, file = spec.split("/spec/") | |
grouped_specs[project] << "spec/#{file}" |
#!/usr/bin/env ruby -wU | |
require "httparty" | |
build_num = ARGV[0] | |
print "Pulling spec failures from build #{build_num}..." | |
summary_url = "https://circleci.com/api/v1/project/LendingHome/lendinghome-monolith/#{build_num}" | |
summary_response = JSON.parse(HTTParty.get(summary_url, query: { "circle-token" => ENV["CIRCLE_TOKEN"]})) | |
puts "done." |
OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012 | |
debug1: Reading configuration data /home/runner/.ssh/config | |
debug1: Reading configuration data /etc/ssh/ssh_config | |
debug1: /etc/ssh/ssh_config line 19: Applying options for * | |
debug2: ssh_connect: needpriv 0 | |
debug1: Connecting to annkissam.beanstalkapp.com [50.31.156.72] port 22. | |
debug1: Connection established. | |
debug1: identity file /home/runner/.ssh/id_rsa type -1 | |
debug1: identity file /home/runner/.ssh/id_rsa-cert type -1 | |
debug1: identity file /home/runner/.ssh/id_dsa type -1 |
module FmsEngine | |
module Core | |
class Callbacks | |
class << self | |
# Redis or something: | |
CALLBACK_REGISTRY = Hash.new { |h, k| h[k] = [] } | |
def bind(event, klass, callback_method, facade_method) | |
CALLBACK_REGISTRY[event] << { klass: klass, callback_method: callback_method, facade_method: facade_method } | |
end |
class ConsumerChangesObserver < ActiveRecord::Observer | |
observe :consumer, :address_record, :consumer_enrollment | |
def after_update(record) | |
ConsumerPublisher.publish_change(record) | |
end | |
end | |
class SomeController < FmsController | |
def some_action |