Skip to content

Instantly share code, notes, and snippets.

View rkbodenner's full-sized avatar

Ralph Bodenner rkbodenner

View GitHub Profile
@rkbodenner
rkbodenner / gist:1405704
Created November 29, 2011 17:50
Go to Zendesk ticket from JIRA issue: A bookmarklet
// Opens a new tab that loads the Zendesk ticket referred to by the JIRA issue you're looking at.
// Specific to New Relic--that DOM ID is for our custom ZendeskID field in JIRA.
javascript:a=document.getElementById('customfield_10100-val');t=a.innerHTML;re=new%20RegExp(/([0-9]+)/);n=re.exec(t);if(n!=null){N=n[1];window.open('https://support.newrelic.com/tickets/'+N);}void%200
@rkbodenner
rkbodenner / gist:741230
Created December 14, 2010 22:26
Helpful SVN shell functions
### SVN commands
# Run these in the tag/branch working copy root.
# The svn_merge* functions depend on having 'trunk' and '<tag name>' working copies in the same directory.
SVN_TRUNK=~/_work/Site/trunk
# Print changelog since the last tag was cut
function tag_patches()
{
if expr `pwd` : '.*/m[0-9][0-9]-[0-9][0-9]-[0-9][0-9]$' > /dev/null; then
# http://rubylearning.com/blog/2009/12/27/rpcfn-mazes-5/
#
# Not efficient, but fairly readable.
# Author: ralph@newrelic.com
class Maze
class Node
attr_reader :x, :y, :distance
attr_accessor :neighbors
def initialize(x, y)
@rkbodenner
rkbodenner / TODO.md
Last active August 29, 2015 14:02
parallel_universe TODO
  • Setup progress
    • Indicate when a player is done
    • Global progress
  • Battlestar!
  • Image describing step
  • Pieces associated with steps
  • Character/color/faction, when selected, annotates the player name
  • Setup steps that vary with number of players
  • Scenarios