Skip to content

Instantly share code, notes, and snippets.

View gsnedders's full-sized avatar

Sam Sneddon gsnedders

View GitHub Profile
@gsnedders
gsnedders / directed.py
Created November 6, 2012 00:44
path verification for alg3 ae1
import sys
if len(sys.argv) > 1:
name = sys.argv[1]
else:
name = raw_input("Input file: ")
fp = open(name, "r")
count = int(fp.readline().strip())
vertices = []
@gsnedders
gsnedders / call.js
Created April 8, 2013 20:49
[[Call]], in JS
var call = (function() {
var apply = Function.prototype.call.bind(Function.prototype.apply);
apply.call = Function.prototype.call;
return function(func, thisArg, args) {
return apply.call(func, thisArg, args);
}
})();
..............FFF...................................................................................................................F...........................................................................................................................................FFFFFFF..........FFFFFF.........................................................................FFFFFFF..........FFFF..........................................F..................................F.....................................FFFF.....F.........F..F.F..........F.........................................FFFF..............FF..F..................................FF................................FF.......................................................................................................................................FFFFFFF....................................................................................................................................F.................F.........................................................
@gsnedders
gsnedders / keybase.md
Created May 18, 2014 21:49
keybase.md

Keybase proof

I hereby claim:

  • I am gsnedders on github.
  • I am gsnedders (https://keybase.io/gsnedders) on keybase.
  • I have a public key whose fingerprint is 0834 40D8 E94C B91F D9E0 21BB 7296 B24F F1CE A22E

To claim this, I am signing this object:

// Generated by dart2js, the Dart to JavaScript compiler version: 1.5.1.
// The code supports the following hooks:
// dartPrint(message):
// if this function is defined it is called instead of the Dart [print]
// method.
//
// dartMainRunner(main, args):
// if this function is defined, the Dart [main] method will not be invoked
// directly. Instead, a closure that will invoke [main], and its arguments
// [args] is passed to [dartMainRunner].
@gsnedders
gsnedders / SassMeister-input-HTML.html
Created November 25, 2014 16:11
Generated by SassMeister.com.
<section class="stuff">
</section>
selectors-3/xml-full.css
selectors-3/xml-shell.css
mediaqueries-3/mq-calc-001-ref.html
mediaqueries-3/ref.html
filters-1/reference/svg-feflood-ref.html
filters-1/reference/svg-feimage-ref.html
filters-1/reference/svg-feoffset-ref.html
css21/text/word-spacing-004.xht
css21/text/word-spacing-005.xht
css21/text/word-spacing-006.xht
css21/text/word-spacing-016.xht
css21/text/word-spacing-017.xht
css21/text/word-spacing-018.xht
css21/text/word-spacing-028.xht
css21/text/word-spacing-029.xht
css21/text/word-spacing-030.xht
css21/text/word-spacing-040.xht
testharness tests in new but not old
css-syntax-3/charset/page-utf16-css-no-decl-ascii-only.html
css-syntax-3/charset/page-utf16-css-no-decl.html
css-syntax-3/charset/page-windows-1251-charset-attribute-bogus.html
css-syntax-3/charset/page-windows-1251-css-at-charset-1250-charset-attribute-windows-1253.html
css-syntax-3/charset/page-windows-1251-css-at-charset-bogus-charset-attribute-windows-1250.html
css-syntax-3/charset/page-windows-1251-css-at-charset-bogus.html
css-syntax-3/charset/page-windows-1251-css-at-charset-utf16-ascii-only.html
css-syntax-3/charset/page-windows-1251-css-at-charset-utf16.html
css-syntax-3/charset/page-windows-1251-css-at-charset-utf16be.html
import csv
import os.path
with open("testinfo.data", "rb") as fp:
reader = csv.DictReader(fp, delimiter="\t")
for row in reader:
path = row["id"]
if not os.path.exists(path):
print "%s does not exist" % path
if row["references"]: