Skip to content

Instantly share code, notes, and snippets.

View blaix's full-sized avatar

Justin Blake blaix

View GitHub Profile
@blaix
blaix / about.md
Created August 9, 2011 15:08 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer

Programming Achievements: How to Level Up as a Developer

  1. Select a particular experience to pursue.
  2. Pursue that experience to completion. (Achievement unlocked!)
  3. Reflect on that experience. Really soak it in. Maybe a blog post would be in order?
  4. Return to Step 1, this time selecting a new experience.

This gist is a fork of the gist from this blog post.

@blaix
blaix / chat-client.html
Created September 2, 2010 04:59
Playing with websockets and EventMachine in the most cliche way possible.
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title>omgsockets</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script>
$(document).ready(function() {
var ws = new WebSocket('ws://localhost:3000');
ws.onmessage = function(msg) {
@blaix
blaix / iterm_pastel_theme.sh
Created July 23, 2010 17:14
iTerm light-on-dark profile.
#!/bin/bash
# Pretty light-on-dark theme for iTerm.
# Copied from here:
# http://kpumuk.info/mac-os-x/customizing-iterm-creating-a-display-profile-with-pastel-colors/
# Run in terminal then restart iTerm.
# Profile is listed as "Pastel" under Bookmarks => Manage Profiles...
PASTEL='{
@blaix
blaix / factory_girl_steps.rb
Created July 22, 2010 13:37
A modified version of the cucumber steps included in factory_girl. But I'd like to find a way to simply redefine the steps it creates without raising an ambiguos step error...
# Stolen from: http://github.com/thoughtbot/factory_girl/blob/master/lib/factory_girl/step_definitions.rb
# and slightly modified so that steps which create only a single record, save
# that record to an instance variable, so you can do things like:
#
# Given I am logged in as an admin
# And a post exists with a title of "Awesome Post"
# When I go to the post
# Then I should see "Awesome Post"
# And I should see a link to edit the post
#