This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The trouble with specialized map types... I need a better name. | |
package main | |
import "fmt" | |
type I interface { | |
M() | |
} | |
type IFunc func() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env bash | |
# usage: bash <(curl https://gist.github.com/bmatsuo/7446833/raw) | |
sudo apt-get update | |
sudo apt-get install ssh git curl vim | |
git clone [email protected]:bmatsuo/home.git | |
bash -c 'cd home && bash install.sh' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"path/filepath" | |
"runtime" | |
"testing" | |
) | |
func flushTestConnections() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require "handbrake" | |
require 'rbconfig' | |
$on_mswin = Config::CONFIG['target_os'].match(/^mingw/) | |
require 'win32/open3' if $on_mswin | |
class MyRunner < HandBrake::CLI::PopenRunner | |
def command(args) | |
return super if !$on_mswin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name What.cd Single/EP of the Week | |
// @namespace http://google.com | |
// @description See the latest Single/EP of the week on the what.cd homepage. | |
// @include http*://*what.cd/index.php | |
// ==/UserScript== | |
//Thanks to dieselpowered for making it more like the Featured Album box! | |
function getElementsByClassName(classname, node) { | |
if(!node) node = document.getElementsByTagName("body")[0]; |
NewerOlder