Skip to content

Instantly share code, notes, and snippets.

View anthonybishopric's full-sized avatar
🚴

Anthony Bishopric anthonybishopric

🚴
View GitHub Profile
@anthonybishopric
anthonybishopric / markdown2html
Created April 23, 2014 21:56
Needs misaka, argparse, pygments
#!/usr/bin/env python
#
# USAGE:
# markdown2html foo.md > foo.html
#
#
import misaka
import argparse
@anthonybishopric
anthonybishopric / gist:9648546
Created March 19, 2014 18:47
go-discoverd demo
2014/03/19 18:45:24 Will register yahoo at :9999
^\SIGQUIT: quit
PC=0x426da1
runtime.notetsleepg(0x9e2d00, 0xffffffffffffffff)
/usr/local/go/src/pkg/runtime/lock_futex.c:190 +0x46 fp=0x7f2c3e9ebf48
runtime.signal_recv(0x0)
/usr/local/go/src/pkg/runtime/sigqueue.goc:110 +0xe2 fp=0x7f2c3e9ebf70
os/signal.loop()
/usr/local/go/src/pkg/os/signal/signal_unix.go:21 +0x1e fp=0x7f2c3e9ebfa0
@anthonybishopric
anthonybishopric / gat
Created March 19, 2014 15:57
gat: execute the given command every time the working dir changes
#! /usr/bin/env ruby
#
# Example usage:
#
# 1> $ cd github.com/anthonybishopric/gotcha
# 1> $ gat go test # begin listening to this directory
#
# 2> $ cd github.com/anthonybishopric/gotcha
# 2> $ touch README.md
<?php
interface Eater
{
public function eat(Food $food);
}
class Robot
{
public function getDiagram() {