Skip to content

Instantly share code, notes, and snippets.

View bemurphy's full-sized avatar

Brendon Murphy bemurphy

View GitHub Profile
@bemurphy
bemurphy / gist:ebfae1ed34b4fb0da3b12b920bc72591
Created January 31, 2018 19:03
advantage_highlights.txt
Yellow highlight | Page: 3
Becoming a healthy organization takes a little time. Unfortunately, many of the leaders I’ve worked with suffer from a chronic case of adrenaline addiction, seemingly hooked on the daily rush of activity and firefighting within their organizations. It’s as though they’re afraid to slow down and deal with issues that are critical but don’t seem particularly urgent.
Yellow highlight | Page: 4
you have to slow down in order to go fast.
Yellow highlight | Page: 6
Two Requirements for Success
@bemurphy
bemurphy / ruby_learning.md
Last active October 19, 2016 17:09
ruby_learning.md

This is probably a good book buy order (buy as many as you like, or 1, or 2, whatever)

running a risk because I put a book at the top slot I haven't read ;)

Essential starting ruby docs to read

@bemurphy
bemurphy / chatty_bots.txt
Last active January 1, 2016 21:29
Things twitter bots are saying right now. I am curious.
I feel bad that I can't remember people's name sometimes even after they just told me their name.
If a bro made me sicilian pasta id cherish that.
I think making muffins is a good idea.
Ack! I've had to change to Chrome cuz FireFox kept freezing! :O
A royale with cheese #SamuelJacksonSmile
#######
# Monkeypatch the user_agent_parser
#######
# Memoizes the pattern load because otherwise
# parsing user agents will read the file
# and build regex every time at the cost
# of 35ms
require "user_agent_parser"
@bemurphy
bemurphy / haiku
Created June 12, 2013 14:55 — forked from friggeri/haiku
haiku = ->
adjs = [
"autumn", "hidden", "bitter", "misty", "silent", "empty", "dry", "dark",
"summer", "icy", "delicate", "quiet", "white", "cool", "spring", "winter",
"patient", "twilight", "dawn", "crimson", "wispy", "weathered", "blue",
"billowing", "broken", "cold", "damp", "falling", "frosty", "green",
"long", "late", "lingering", "bold", "little", "morning", "muddy", "old",
"red", "rough", "still", "small", "sparkling", "throbbing", "shy",
"wandering", "withered", "wild", "black", "young", "holy", "solitary",
"fragrant", "aged", "snowy", "proud", "floral", "restless", "divine",
@bemurphy
bemurphy / invitation_set.rb
Created September 11, 2012 05:44
InvitationSet
class InvitationSet
attr_reader :organization
def initialize(organization)
@organization = organization
end
def invite(email)
invite_code = Token.generate(6).upcase
key.zadd(Time.now.to_i, invite_code)
puts "test.rb"
foo = "bar"
@bemurphy
bemurphy / gist:1727383
Created February 3, 2012 03:08
git log alias stuff
[alias]
l = log --graph --pretty=format':%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset'
@bemurphy
bemurphy / rgb.c
Created December 26, 2011 18:04
red green blue for tri color led and tdd
const int RED_LED_PIN = 9;
const int GREEN_LED_PIN = 10;
const int BLUE_LED_PIN = 11;
String inputString = "";
boolean stringComplete = false;
void setup() {
Serial.begin(9600);
inputString.reserve(100);
@bemurphy
bemurphy / gist:1424311
Created December 2, 2011 18:31
run ctags in a post-checkout hook
#!/usr/bin/env ruby
require "shellwords"
def run_tags
`ctags -R . 2>/dev/null`
end
def project_dir
File.basename Dir.pwd