I hereby claim:
- I am iand on github.
- I am rauyran (https://keybase.io/rauyran) on keybase.
- I have a public key whose fingerprint is BF43 67CC 4922 C201 AC36 465E D360 75B9 93AE D216
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
BenchmarkBoundsCheckRawLoop 200000 8782 ns/op 0 B/op 0 allocs/op | |
BenchmarkBoundsCheckRangeIndex 200000 9553 ns/op 0 B/op 0 allocs/op | |
BenchmarkBoundsCheckRangeVal 200000 8648 ns/op 0 B/op 0 allocs/op |
#!/usr/bin/python | |
import sys | |
import rdflib | |
g = rdflib.Graph() | |
g.parse(sys.argv[1], format="rdfa") | |
print g.serialize(format="turtle") |
// A data item that automatically saves data at a maximum rate of once every second, | |
// even if the data is changing much faster than that. | |
// I didn't write this code. It was created by Roger Peppe and sent to the | |
// go-nuts mailing list. The original version is at http://play.golang.org/p/1LCxri0EXz | |
package main | |
import ( | |
"io/ioutil" |
name <http://kierdavis.com/data/me> as me | |
name <http://kierdavis.com/data/projects> as projects | |
pattern ?l ?n ?p ?pt { a foaf:OnlineAccount | |
rdfs:label ?l | |
foaf:accountName ?n | |
foaf:accountServiceHomepage ?p | |
foaf:isPrimaryTopicOf ?pt | |
} as Account | |
me { a foaf:Person | |
foaf:name "Kier Davis" |
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
fmt.Println("Test interrupt nonsense") |
Some notes on why Go works for me and why it might work for you if you're looking for another language to add to your repetoire. Goes without saying that this reflects my personal taste.
Go features that I particularly like
# Show modified files in last commit: | |
dl = "!git ll -1" | |
# Show a diff last commit: | |
dlc = diff --cached HEAD^ | |
# List oneline commits showing relative dates: | |
ld = log --pretty=format:"%C(yellow)%h\\ %Cred%d\\ %Creset%s\\ %C(green)(%ad)%Cblue\\ [%cn]" --decorate --date=relative | |
# List oneline commits showing dates |
Follow the build instructions in https://github.com/google/cayley
Copy attached ntriple file to suitable location and run cayley with
./cayley http --dbpath=iand.ttl
Visit http://localhost:64210/
package main | |
import ( | |
"code.google.com/p/plotinum/plot" | |
"code.google.com/p/plotinum/vg" | |
"code.google.com/p/plotinum/vg/veceps" | |
"math/rand" | |
) | |
func main() { |