Skip to content

Instantly share code, notes, and snippets.

View pklingem's full-sized avatar

Patrick Klingemann pklingem

View GitHub Profile

Keybase proof

I hereby claim:

  • I am pklingem on github.
  • I am pklingem (https://keybase.io/pklingem) on keybase.
  • I have a public key ASATAfNAO-Ix11GrOCLaBY40iwiB52o4OSoObyRco_AGVgo

To claim this, I am signing this object:

@pklingem
pklingem / .tmux.conf
Last active January 26, 2016 14:58
smart pane switching with awareness of vim splits
bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L"
bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D"
bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U"
bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R"
bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys 'C-\\') || tmux select-pane -l"
@pklingem
pklingem / .tmux.conf
Created January 26, 2016 14:54
tmux mouse integration
# mouse integration for OS X, not sure about linux
# see: https://github.com/tmux/tmux/issues/145#issuecomment-151123624
set -g mouse-utf8 on
set -g mouse on
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
bind -n WheelDownPane select-pane -t= \; send-keys -M
@pklingem
pklingem / gist:91e6e9ceb6da14c337f8
Last active August 29, 2015 14:09
emojimation.md

          :eyes:

     :ear::nose::ear:

👍     💋     👎

      :mans_shoe:     :mans_shoe:

@pklingem
pklingem / tom_kha_gai.md
Created June 21, 2012 23:13
Tom Kha Gai Recipe

Thai Chicken Coconut Soup (Tom Kha Gai)

This classic Thai chicken soup gets its rich flavor from quintessential Thai ingredients: coconut milk, lemongrass, fresh ginger, lime juice, chile paste, basil and cilantro.

Ingredients

  • 1 can (14 oz.) coconut milk
  • 1 can (14 oz.) reduced-sodium chicken broth $
  • 6 quarter-size slices fresh ginger
  • 1 stalk fresh lemongrass, cut in 1-in. pieces
@pklingem
pklingem / test.md
Created April 2, 2012 15:38
Github markdown HTML id attribute test
@pklingem
pklingem / thai_basil_chicken_recipe.md
Last active August 28, 2017 15:37
Thai Basil Chicken Recipe

Thai Basil Chicken

Youtube Video

Ingredients:

  • 2 Chicken Breasts
  • 1/2 Onion
  • 2 tbs. Vegetable Oil
  • 1/3 Cup Water
  • 2 Cloves Garlic
@pklingem
pklingem / issues.rb
Created November 20, 2011 07:35
list reviewed issue branches
require 'rubygems'
require 'rest_client'
require 'json'
USERNAME='username'
PASSWORD='password'
PREFIX='https'
HOSTNAME='api.github.com'
ROOT_URL="#{PREFIX}://#{USERNAME}:#{PASSWORD}@#{HOSTNAME}"
REPO_OWNER='repo_owner'
omethjing
something
smotehing
sofhteinf
# State Machine - http://en.wikipedia.org/wiki/State_machine
# Traffic Light - http://en.wikipedia.org/wiki/Traffic_light
# Workflow - http://en.wikipedia.org/wiki/Workflow
# Wizard - http://en.wikipedia.org/wiki/Wizard_%28software%29
# state_machine - https://github.com/pluginaweek/state_machine
# traffic_light - https://gist.github.com/735281
class TrafficLight
WAIT_TIME_IN_SECONDS = 5