Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am towanda on github.
  • I am towanda (https://keybase.io/towanda) on keybase.
  • I have a public key whose fingerprint is DD59 2B58 D022 E129 B942 09ED 8800 14D0 A59C 408C

To claim this, I am signing this object:

@towanda
towanda / copy-to-hipchat.el
Last active August 29, 2015 14:01
Copy code to hipchat
(defun copy-to-hipchat ()
"Adds /code to the region copied"
(interactive)
(kill-ring-save (region-beginning) (region-end))
(kill-append "/code " t))

Problem-Solving Games

My daughter and I love playing problem-solving games together. After completing a few I asked for recommendations on Twitter. Here's the list.

Completed

@towanda
towanda / app.rb
Created November 12, 2012 11:25 — forked from pacoguzman/app.rb
Testing jquery-ui sortable with capybara
# Run via: ruby -rubygems app.rb
require 'sinatra'
require 'haml'
disable :logging
get '/' do
title = "Drag'n'drop issue reduction"
haml :index
end
@towanda
towanda / hack.sh
Created April 1, 2012 09:14 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@towanda
towanda / default.vcl.pl
Created March 13, 2012 12:39 — forked from bmarini/default.vcl.pl
A good varnish config for a Rails app
# https://www.varnish-cache.org/docs/2.1/tutorial/vcl.html
# https://www.varnish-cache.org/trac/wiki/VCLExamples
# Summary
# 1. Varnish will poll the backend at /health_check to make sure it is
# healthy. If the backend goes down, varnish will server stale content
# from the cache for up to 1 hour.
# 2. Varnish will pass X-Forwarded-For headers through to the backend
# 3. Varnish will remove cookies from urls that match static content file
# extensions (jpg, gif, ...)
@towanda
towanda / gist:1744992
Created February 5, 2012 11:58 — forked from ambar/gist:1534274
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
(compilation-start (concat command-args " " (rinari-root)) 'ack-mode))
@towanda
towanda / gist:807988
Created February 2, 2011 17:00
penultima linea ack.el
(compilation-start command-args 'ack-mode))