Skip to content

Instantly share code, notes, and snippets.


Jeff Kreeftmeijer jeffkreeftmeijer

View GitHub Profile
View bang.gemspec do |s| = 'bang'
s.version = '0.1.0'
s.platform = Gem::Platform::RUBY = 'Jeff Kreeftmeijer' = ''
s.summary = 'Bang!'
s.description = 'Bangs existing model methods'
s.files = ['bang.rb']
View http_server.rb
require 'socket'
require 'rack'
require 'rack/lobster'
app =
server = 5678
while session = server.accept
request = session.gets
puts request
View mice.css
.mouse, #preview{
position: absolute;
background-repeat: no-repeat;
height: 22px;
min-width: 15px;
z-index: 100;
background-image: url('../images/cursor.png');
jeffkreeftmeijer /
Last active Jan 30, 2019
enough.css is a tiny CSS style sheet with most of the styling you'll need for that blog of yours. It moved to
View frame.html
margin: 0;
padding: 10px 10px 10px 10px;
View ansi_colors.adoc

Terminal colors with ANSI escape sequences

Terminal emulators use ANSI escape sequences to --amongst other things like controlling the cursor’s position-- read the desired text and background color when printing output.

$ echo -e "\033[31mred\033[m" # Prints "red" in red.

While most terminal emulators, including Apple’s, support true color now, most utilities use one of the main sixteen colors (black, red, green, yellow, blue, magenta, cyan, white, and a high intensity or bright version of each). For example, git shows diffs with additions in green and deletions in red, and most testing frameworks print green dots and red "F"s for failures.

jeffkreeftmeijer / README.textile
Created Nov 14, 2010
A stupid RSpec formatter that prints FFFUUU instead of FFFFF. Heh.
View README.textile


A stupid RSpec formatter that prints FFFUUU instead of FFFFF. Heh.


Throw it in a file and run your specs like this:

$ rspec -r path/to/fffuuu_formatter.rb -f FffuuuFormatter spec/
You can’t perform that action at this time.