Skip to content

Instantly share code, notes, and snippets.

View bottles.rb
class Bottles
def song
verses(99, 0)
def verses(high, low)
high.downto(low).map { |n| verse(n) }.join("\n")
def verse(n)

Keybase proof

I hereby claim:

  • I am mwean on github.
  • I am mwean ( on keybase.
  • I have a public key ASCLjDQq9jv6vHfskj0RVFu-zuUe1kfbx2rjyR9ExZRx8go

To claim this, I am signing this object:

View Interview

Development Process

  • Describe a current or upcoming project that I might work on
  • How do you balance speed and quality?
  • Do you do code review? Does all code get reviewed?
  • What is your approach to testing?
  • What is the development process like?
  • Who is responsible for doing deployment? How often do you deploy?
  • How do you balance support work and feature development?
  • How often do you pair? What’s pairing like? How often do inexperienced people work directly with experienced people?
  • What’s the onboarding process like?
mwean / run_changed_specs
Created Dec 8, 2016
Run any changed specs
View run_changed_specs
#!/usr/bin/env ruby
project_root = `git rev-parse --show-toplevel`.strip
git_status = `git status --porcelain --untracked-files=all`.split("\n")
changed_files = { |line| line[3..-1] }
grouped_specs = { |hash, key| hash[key] = [] } { |file| file =~ /spec/ }.each do |spec|
project, file = spec.split("/spec/")
grouped_specs[project] << "spec/#{file}"
mwean / list_failures
Created Apr 11, 2016
List all spec failures from a given build
View list_failures
#!/usr/bin/env ruby -wU
require "httparty"
build_num = ARGV[0]
print "Pulling spec failures from build #{build_num}..."
summary_url = "{build_num}"
summary_response = JSON.parse(HTTParty.get(summary_url, query: { "circle-token" => ENV["CIRCLE_TOKEN"]}))
puts "done."
View test.uml
User->Phone: Phone No.
Phone->Twitter: Phone No.
Twitter->Phone: Twitter Token
Phone->Server: Twitter Token
Server->Twitter: Twitter Token
Twitter->Server: Yes/No
Note right of Server: Generate & save token JWT?
Server->Phone: Token/Error
Phone->Server: Token
mwean / SassMeister-input.scss
Last active Aug 29, 2015
Generated by
View SassMeister-input.scss
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
$positions: (
backend: "\e83a",
dev: "\e84a",
data: "\e82e",
front: "\e807",
mwean / SassMeister-input.scss
Created Jun 3, 2015
Generated by
View SassMeister-input.scss
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// ----
map-merge((foo: 1, bar: 2), (baz: 3));
map-merge(("foo": 1), ("bar": 2));
View gist:dfa5410df60d5801c11b
total commits: 192
58 Merge
12 Update
12 Add
9 adds
8 Added
6 bump
6 Fix
4 Still
4 Fixed
mwean / create_index1.sql
Last active Oct 5, 2017
Code Snippets for Adventures in Searching with Postgres - Part 2
View create_index1.sql
CREATE INDEX index_description_on_icd_codes ON icd_codes USING gin(to_tsvector(description))