Skip to content

Instantly share code, notes, and snippets.

Here's my list of WoW AddOns. You may download, install and update
these at any time using WowMatrix at http://www.wowmatrix.com/
!BugGrabber - Grabs bugs for the bug sack.
!Swatter - Debugging tool for handling and displaying of error messages in a useful way.
Ace2 - AddOn development framework
Ace3 - AddOn development framework
ANSI[:RESET] = "\001\e[0m\002"
ANSI[:BOLD] = "\001\e[1m\002"
ANSI[:UNDERLINE] = "\001\e[4m\002"
ANSI[:LGRAY] = "\001\e[0;37m\002"
ANSI[:GRAY] = "\001\e[1;30m\002"
ANSI[:RED] = "\001\e[31m\002"
ANSI[:GREEN] = "\001\e[32m\002"
ANSI[:YELLOW] = "\001\e[33m\002"
ANSI[:BLUE] = "\001\e[34m\002"
ANSI[:MAGENTA] = "\001\e[35m\002"
class CreateCheckins < ActiveRecord::Migration
def self.up
create_table :checkins do |t|
t.string :name
t.point :latlon, :srid => 4326
t.timestamps
end
add_index :checkins, :latlon, :spatial => true
end
<!-- layout file -->
<% if current_user %>
Welcome <%= current_user.username %>. Not you? <%= link_to "Log out", logout_path %>
<% else %>
<%= link_to "Sign up", signup_path %> or <%= link_to "log in", login_path %>.
<% end %>
@rickenharp
rickenharp / textmate_ruby
Created May 6, 2011 12:16
better textmate_ruby wrapper for rvm
#!/usr/bin/env sh
source ~/.rvm/scripts/rvm
LOGFILE=/dev/null
exec 6>&1
exec > $LOGFILE
cd .
exec 1>&6 6>&-
exec ruby "$@"
@rickenharp
rickenharp / env.rb
Created September 24, 2012 08:05
Setting the locale in capybara with selenium-webdriver
Capybara.register_driver :selenium_de do |app|
require 'selenium/webdriver'
profile = Selenium::WebDriver::Firefox::Profile.new
profile['intl.accept_languages'] = "de"
Capybara::Selenium::Driver.new(app, :profile => profile)
end
Capybara.javascript_driver = :selenium_de
@rickenharp
rickenharp / gist:aaf4e2527d4fceadc628
Created May 2, 2014 16:35
Dungeon World Story Starter
You are at the entrance to <insert named dungeon location>, which is located in / on / by <insert a named, fantastic (un)natural surroundings>. You have journeyed here to <insert quest> on behalf of <insert sketchy character>. Your luck has turned sour though, because <insert reason>, and that's a real problem because <insert grueling consequences>. To make matters worse, you have just seen signs of <insert approaching threat>. You can't turn back since <insert yet another annoying reason>, so you must push on. Looking at the entrance, you get a feeling this won't turn out well for all of you. What do you do?
18/05/14 19:25:13,490 Tweetbot[18694]: Exception detected while handling key input.
18/05/14 19:25:13,491 Tweetbot[18694]: *** NSRunStorage, _NSBlockNumberForIndex(): index (1) beyond array bounds (1)
18/05/14 19:25:13,494 Tweetbot[18694]: (
0 CoreFoundation 0x00007fff94dbc25c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff9444be75 objc_exception_throw + 43
2 CoreFoundation 0x00007fff94dbc10c +[NSException raise:format:] + 204
3 AppKit 0x00007fff8e71d797 _NSBlockNumberForIndex + 85
4 AppKit 0x00007fff8e722690 -[NSLayoutManager(NSPrivate) _fillLayoutHoleForCharacterRange:desiredNumberOfLines:isSoft:] + 2401
5 AppKit 0x00007fff8e7cb8d9 _NSFastFillAllLayoutHolesForGlyphRange + 1435
6 AppKit 0x00007fff8e7203ca -[NSLayoutManager textContainerForGlyphAtIndex:effectiveRange:] + 235
@rickenharp
rickenharp / minecraft_seeds.txt
Created August 5, 2014 15:55
Interesting seeds for Minecraft worlds
1455161283749254419

Keybase proof

I hereby claim:

  • I am rickenharp on github.
  • I am rickenharp (https://keybase.io/rickenharp) on keybase.
  • I have a public key whose fingerprint is B38E 473B 82B8 F425 6BDC 5E64 3B29 1A0B 2E9C 43C9

To claim this, I am signing this object: