the gist you pasted works for me