Skip to content

Instantly share code, notes, and snippets.

View pjmorse's full-sized avatar

Parker Morse pjmorse

View GitHub Profile
#!/usr/bin/env ruby -wKU
# Comments added 6 March 2014.
# Implementation of the MetaWeblog API for my personal Ruby static blog generator.
# This is not even nearly idiomatic Ruby. There are all kinds of issues.
# (What's with the method interiors all being mushed-up together?)
# But -- it's also worked flawlessly for five years without my having to edit it.
# It won't work for anyone else as-is — but if it helps anyone
# to do a MetaWeblog API implementation, then cool.
@JamesChevalier
JamesChevalier / gist:3656343
Created September 6, 2012 13:39
Custom Bash Prompt
# unstaged (*) and staged (+) changes will be shown next to the branch name
GIT_PS1_SHOWDIRTYSTATE="."
# if there are untracked files (%) will be shown next to the branch name
GIT_PS1_SHOWUNTRACKEDFILES="."
# if something is stashed ($) will be shown next to the branch name
GIT_PS1_SHOWSTASHSTATE="."
# you are behind (<), you are ahead (>), or you have diverged (<>)
GIT_PS1_SHOWUPSTREAM="auto"
# White brackets, yellow path, blue branch name, and cyan dollar sign
@tomdale
tomdale / gist:1856842
Created February 18, 2012 01:54
Ember documentation TODO

Documentation

TODO

  • API docs
  • How to bootstrap a project
  • Application structure (M/V/C layers and what they're for)
  • Getting started with Ember and Rails
  • Built-in controls
  • How events are handled and bubbled
@dbrady
dbrady / donkey_patches.rb
Created July 27, 2011 07:25 — forked from blowmage/edgecase.rb
Ruby Koans Hackfest
#!/usr/bin/env ruby
# -*- ruby -*-
# This is a fully-functional set of donkey patches that will break
# Ruby so badly that it makes all of the Ruby Koans pass right out of
# the box. ALl you need to do is patch edgecase.rb with this line:
#
# require File.expand_path(File.dirname(__FILE__) + '/donkey_patches')
#
# so it's the first line of the file. Then save this file as