Skip to content

Instantly share code, notes, and snippets.

View browning's full-sized avatar

Brian Browning browning

View GitHub Profile
0x03E5EF74F504819D40C116930A40B972F93E3004
https://gist.github.com/anonymous/d7b3937a231e2b519a92e15c502850e7
@browning
browning / dkpoints.csv
Created November 17, 2015 17:59
Average points and std dev on DK as of 11/16
NAME AVGPTS STDDEV VARIANCE
Pau Gasol 34.550000 9.143167 83.597500
Tibor Pleiss 1.687500 1.689813 2.855469
Jodie Meeks 2.000000 2.000000 4.000000
Joakim Noah 21.277778 9.383381 88.047840
Derrick Williams 13.886364 8.433809 71.129132
Randy Foye 11.300000 6.297619 39.660000
Mike Miller 3.656250 4.324598 18.702148
Draymond Green 37.840909 11.662037 136.003099
Kyle Lowry 41.704545 8.960658 80.293388
@browning
browning / keybase.md
Created April 8, 2015 13:49
keybase.md

Keybase proof

I hereby claim:

  • I am browning on github.
  • I am browning (https://keybase.io/browning) on keybase.
  • I have a public key whose fingerprint is 83C5 5CC5 DF62 C41A 7E0A EFC6 800D E169 A516 AF8C

To claim this, I am signing this object:

@browning
browning / gist:3fb1e308b23799246e0c
Created September 15, 2014 02:13
How to fetch and parse an HTML page in GOLANG
// FETCH AN HTML PAGE AND PRINT OUT ALL OF THE URLS IN LINKS
import "fmt"
import "net/http"
import "code.google.com/p/go.net/html"
func parse_html(n *html.Node) {
if n.Type == html.ElementNode && n.Data == "a" {
for _, element := range n.Attr {
if element.Key == "href" {

Keybase proof

I hereby claim:

  • I am browning on github.
  • I am browning (https://keybase.io/browning) on keybase.
  • I have a public key whose fingerprint is 4903 FDF0 59AA 6A6C 812A A105 CFF8 2350 1043 0CFB

To claim this, I am signing this object:

rtree = radix.Radix()
for netblock in netblocks:
node = rtree.add(netblock)
if rtree.search_best(ip)
print "ip is in one of the networks"
Started GET "/client/new" for 0:0:0:0:0:0:0:1 at Tue Jun 21 18:03:50 +0200 2011
[Barista] Compiling all scripts for barista
[Barista] Compiling all coffeescripts
[Barista] Copying all javascripts
Processing by ClientsController#new as HTML
User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
Rendered runtime/devise/sessions/_new.html.erb (7.0ms)
Rendered runtime/client/new.html.erb (17.0ms)
Completed 200 OK in 91ms (Views: 31.0ms | ActiveRecord: 1.0ms)
brian@brian-laptop:~/jruby_trunk/jruby$ sudo ant
Buildfile: build.xml
init:
prepare-bin-jruby:
jar:
init:
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/brian/jruby_trunk/jruby/maven/jruby/src/main/resources
Downloading: http://repo1.maven.org/maven2/jline/jline/1.0/jline-1.0.pom
[INFO] Unable to find resource 'jline:jline:pom:1.0' in repository central (http://repo1.maven.org/maven2)
Downloading: http://repo1.maven.org/maven2/jline/jline/1.0/jline-1.0.jar
[INFO] Unable to find resource 'jline:jline:jar:1.0' in repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------