Skip to content

Instantly share code, notes, and snippets.

View corytheboyd's full-sized avatar

Cory Boyd corytheboyd

View GitHub Profile
@corytheboyd
corytheboyd / .zshrc
Created April 28, 2022 16:46
My custom ZSH additions
# ######################
# MY CONFIGURATION START
# ######################
function be() {
bundle exec "$@"
}
function dgaf() {
git reset && \
@nateborr
nateborr / cory.rb
Last active August 29, 2015 14:27
beer for cory
#!/usr/bin/env ruby
# Here is an alphabet including a beer mug
beer = "\u{1F37A}"
letters = ('a'..'z').to_a << beer
# Here are the words for the beer numbers
number_words = %w{one two three four five}
# Here are the number words padded out to equal lengths with prepended beers
max_number_word_length = number_words.map(&:length).max
@jlong
jlong / uri.js
Created April 20, 2012 13:29
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
@chetan
chetan / yardoc_cheatsheet.md
Last active April 16, 2024 23:49
YARD cheatsheet