Skip to content

Instantly share code, notes, and snippets.

View tomkersten's full-sized avatar

Tom Kersten tomkersten

View GitHub Profile
@tomkersten
tomkersten / .aliases
Created October 31, 2012 18:39
Auto-associated ticket number with commit based on branch name
# If you have a branch named "tSOME_NUMBER" (eg: 't332'), this will open that
# ticket in a web browser for review.
#
# eg:
# $ git co t332
# $ review
# ...browser opens to ticket #332 page
#
# replace SOME_URL with the URL up-to the ticket number in your issue/ticket-management system
# eg: "https://github.com/USER_ID/PROJECT_NAME/issues/"
source 'https://rubygems.org'
gem 'rails', '~> 3.2'
gem 'haml'
gem 'jquery-rails'
gem 'puma'
gem 'devise'
gem 'person-name', require: 'person-name', git: 'https://github.com/tomkersten/person-name.git'
#!/usr/bin/env ruby
# Do this:
# gem install httparty nokogiri
# Then run this file...
require 'httparty'
require 'nokogiri'
@tomkersten
tomkersten / gist:4978810
Created February 18, 2013 16:58
Hubot script for "agreed", "I agree", or "+1" in room
# Description:
# "I agree" gifs
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

@tomkersten
tomkersten / orig.json
Last active August 29, 2015 14:04
JS Object -> UBER
{
'identifier': '3220l',
'name': 'Deck chair',
'tidbit': 'You sit on it'
'description': '1-2 sentences of descriptive text. Right here.'
'specification': '[...a really long chunk of structured text...]'
'related_products': [
{
id: 'c7028k',

Keybase proof

I hereby claim:

  • I am tomkersten on github.
  • I am tomkersten (https://keybase.io/tomkersten) on keybase.
  • I have a public key whose fingerprint is DA11 D702 B2C4 822B BBC4 33CE CBE8 A014 62E9 51ED

To claim this, I am signing this object: