Skip to content

Instantly share code, notes, and snippets.

View wm's full-sized avatar

Will Mernagh wm

View GitHub Profile
@wm
wm / handle.go
Last active November 8, 2015 01:01
casting-vs-calling
http.Handle("/yolo2", http.HandlerFunc(Yolo))
@wm
wm / 001.go
Created November 8, 2015 01:43
casting-vs-calling-1
http.Handle("/yolo2", http.HandlerFunc(Yolo))
@wm
wm / main.go
Created November 8, 2015 01:45
casting-vs-calling-2
package main
import (
"fmt"
"net/http"
)
type Lol struct{}
func (l *Lol) ServeHTTP(w http.ResponseWriter, r *http.Request) {
@wm
wm / main.go
Created November 8, 2015 01:46
calling-vs-casting-3
package main
import (
"fmt"
"net/http"
)
func Yolo(w http.ResponseWriter, r *http.Request) {
fmt.Fprintln(w, "YOLO")
}
@wm
wm / main.go
Created November 8, 2015 01:47
calling-vs-casting-4
package main
import (
"fmt"
"net/http"
)
func Rofl(w http.ResponseWriter, r *http.Request) {
fmt.Fprintln(w, "ROFL")
}
@wm
wm / hangout
Last active December 12, 2015 02:48 — forked from drinks/hangout
#!/usr/bin/env ruby
### make sure you `brew install chromedriver` and `gem install selenium-webdriver` before running this!
require 'rubygems'
require 'selenium-webdriver'
hangout_url = ENV['hangout_url']
hangout_email = ENV['hangout_email']
hangout_password = ENV['hangout_password']
describe 'simple object' do
class A
def initialize
@c = 'ccc'
@d = 'ddd'
end
def default
'aaa'
@wm
wm / boston.rb
Last active December 15, 2015 04:28 — forked from bcardarella/gist:5201416
class Boston < Town
LAT = "30°4′E"
LNG = "29°41′S"
REFERENCE = "http://en.wikipedia.org/wiki/Boston,_KwaZulu-Natal"
end
@wm
wm / tmux_bindings.md
Created December 16, 2015 03:51
my tmux setup
Key binding Action
M n next-window
M p previous-window
M j move down a pane
M k move up a pane
M h move left a pane
M-l move right a pane
M ↑ move the pane divide up (resize)
M ↓ move the pane divide down (resize)

A Trello Board

[![Trello Development Board](https://trello.com/b/nC8QJJoZ.png)](https://trello.com/b/nC8QJJoZ)

Trello Development Board

A Trello Card