Skip to content

Instantly share code, notes, and snippets.

View thams's full-sized avatar

Kurt Thams thams

View GitHub Profile
@sjl
sjl / ext.vim
Created December 15, 2014 18:58
ways to run external commands in vim
" run command
" no stdin
" output displayed in "Press enter to continue" style
" current buffer untouched
:!uptime
" run command
" pipe range of text to command on stdin
" output replaces the range in the current buffer
:RANGE!grep foo
@enmaku
enmaku / gist:4062303
Created November 12, 2012 22:05
Bitcoin Speculation Index
import json
import urllib2
r = urllib2.urlopen("http://blockchain.info/charts/trade-volume?timespan=all&format=json")
tradevol_string = r.read()
r.close()
r = urllib2.urlopen("http://blockchain.info/charts/estimated-transaction-volume-usd?timespan=all&format=json")
txvol_string = r.read()
r.close