Skip to content

Instantly share code, notes, and snippets.

Brendon Murphy bemurphy

Block or report user

Report or block bemurphy

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
View gist:ebfae1ed34b4fb0da3b12b920bc72591
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 Oct 19, 2016
ruby_learning.md
View 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 Jan 1, 2016
Things twitter bots are saying right now. I am curious.
View chatty_bots.txt
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
View uap_mp.rb
#######
# 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"
View 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",
View invitation_set.rb
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)
View test.rb
puts "test.rb"
foo = "bar"
@bemurphy
bemurphy / gist:1727383
Created Feb 3, 2012
git log alias stuff
View gist:1727383
[alias]
l = log --graph --pretty=format':%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset'
@bemurphy
bemurphy / rgb.c
Created Dec 26, 2011
red green blue for tri color led and tdd
View rgb.c
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 Dec 2, 2011
run ctags in a post-checkout hook
View gist:1424311
#!/usr/bin/env ruby
require "shellwords"
def run_tags
`ctags -R . 2>/dev/null`
end
def project_dir
File.basename Dir.pwd
You can’t perform that action at this time.