Skip to content

Instantly share code, notes, and snippets.

View ddarbyson's full-sized avatar

Darcy Darbyson ddarbyson

View GitHub Profile
@namutaka
namutaka / handy.rb
Created December 25, 2010 13:12
[irb][ruby]Define handy methods for debug in irb.
#
# Define handy methods for debug in irb.
#
module Handy
# Call Kernel#p method with self.
def _p
p self
self
end
@jbenet
jbenet / simple-git-branching-model.md
Last active June 17, 2024 14:53
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

@HaleTom
HaleTom / print256colours.sh
Last active June 29, 2024 16:16
Print a 256-colour test pattern in the terminal
#!/bin/bash
# Tom Hale, 2016. MIT Licence.
# Print out 256 colours, with each number printed in its corresponding colour
# See http://askubuntu.com/questions/821157/print-a-256-color-test-pattern-in-the-terminal/821163#821163
set -eu # Fail on errors or undeclared variables
printable_colours=256