Skip to content

Instantly share code, notes, and snippets.

View freeeve's full-sized avatar

Eve Freeman freeeve

  • Fairfax, VA
View GitHub Profile
STARTING a lot of adding; N = 1000000000
buckets per file: 523263
initializing (zeroing) filesize: 2143285248
done zeroing filesize for testfile.dish.0, elapsed: 17.751s
initializing (zeroing) filesize: 2143285248
done zeroing filesize for testfile.dish.1, elapsed: 15.65s
initializing (zeroing) filesize: 2143285248
done zeroing filesize for testfile.dish.2, elapsed: 15.752s
initializing (zeroing) filesize: 2143285248
done zeroing filesize for testfile.dish.3, elapsed: 15.477s
@freeeve
freeeve / style.css
Created March 7, 2014 22:02
userstyle for making tabs 3 spaces
.highlight pre {
-moz-tab-size: 3 !important;
-webkit-tab-size: 3 !important;
-o-tab-size: 3 !important;
tab-size: 3 !important;
}
textarea.code {
-moz-tab-size: 3 !important;
-webkit-tab-size: 3 !important;
@freeeve
freeeve / main.go
Last active August 29, 2015 14:01
package main
import (
"bytes"
"io/ioutil"
"log"
"os"
"os/exec"
)
{
"outputGraphPath":"/Users/wfreeman/rdf2neo-test/",
"gzippedNTripleFile":"/Users/wfreeman/rdf2neo/freebase-1m.nt.gz",
"nodeTypeSubjects": [],
"nodeTypePredicates": ["<http://rdf.freebase.com/ns/type.type.instance>"],
"nodeTypeSubjectsConjunctive": [],
"ignoreSubjects":[],
"ignorePredicates":[],
"ignoreObjects":[],
"ignorePredicatePrefixes":[],
package main
import (
"github.com/FoundationDB/fdb-go/fdb"
"github.com/FoundationDB/fdb-go/fdb/directory"
"github.com/FoundationDB/fdb-go/fdb/subspace"
"github.com/FoundationDB/fdb-go/fdb/tuple"
"errors"
"fmt"
match (n:Position) return n.score, n.fen limit 10;
CREATE CONSTRAINT ON (p:Position) ASSERT p.fen IS UNIQUE;
CREATE (g:Game) SET g.black = 'Polgar, Zsuzsa', g.white = 'Ftacnik, Lubomir', g.date= '1982.??.??', g.result = '0-1'
MERGE (p0:Position {fen:'rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1'}) ON CREATE SET p0.score = -39, p0.depth = 10 WITH p0, g MERGE (p0)<-[:CONTAINS {movenum:0}]-(g)
MERGE (p1:Position {fen:'rnbqkbnr/pppppppp/8/8/3P4/8/PPP1PPPP/RNBQKBNR b KQkq d3 0 1'}) ON CREATE SET p1.score = 41, p1.depth = 10 MERGE (p0)-[:NEXT {move:'g8f6'}]->(p1) MERGE (p1)<-[:CONTAINS {movenum:1}]-(g)
MERGE (p2:Position {fen:'rnbqkb1r/pppppppp/5n2/8/3P4/8/PPP1PPPP/RNBQKBNR w KQkq - 1 2'}) ON CREATE SET p2.score = 18, p2.depth = 10 MERGE (p1)-[:NEXT {move:'c1f4'}]->(p2) MERGE (p2)<-[:CONTAINS {movenum:2}]-(g)
MERGE (p3:Position {fen:'rnbqkb1r/pppppppp/5n2/8/2PP4/8/PP2PPPP/RNBQKBNR b KQkq c3 0 2'}) ON CREATE SET p3.score = -14, p3.depth = 10 MERGE (p2)-[:NEXT {move:'e7e6'}]->(p3) MERGE (p3)<-[:CONTAINS {movenum:3}]-(g)
MERGE (p4:Position {fen:'rnbqk
This file has been truncated, but you can view the full file.
# github.com/FoundationDB/fdb-go/fdb
"".int64ToBytes t=1 size=528 value=0 args=0x30 locals=0xa0
000000 00000 (/Users/wfreeman/gocode/src/github.com/FoundationDB/fdb-go/fdb/generated.go:17) TEXT "".int64ToBytes+0(SB),$160-48
000000 00000 (/Users/wfreeman/gocode/src/github.com/FoundationDB/fdb-go/fdb/generated.go:17) MOVQ (TLS),CX
0x0009 00009 (/Users/wfreeman/gocode/src/github.com/FoundationDB/fdb-go/fdb/generated.go:17) LEAQ -32(SP),AX
0x000e 00014 (/Users/wfreeman/gocode/src/github.com/FoundationDB/fdb-go/fdb/generated.go:17) CMPQ AX,(CX)
0x0011 00017 (/Users/wfreeman/gocode/src/github.com/FoundationDB/fdb-go/fdb/generated.go:17) JHI ,26
0x0013 00019 (/Users/wfreeman/gocode/src/github.com/FoundationDB/fdb-go/fdb/generated.go:17) CALL ,runtime.morestack48_noctxt(SB)
0x0018 00024 (/Users/wfreeman/gocode/src/github.com/FoundationDB/fdb-go/fdb/generated.go:17) JMP ,0
0x001a 00026 (/Users/wfreeman/gocode/src/github.com/FoundationDB/fdb-go/fdb/generated.go:17) SUBQ $160,SP
package main
import (
"bufio"
"fmt"
"os"
)
func main() {
filename := os.Args[1]
package main
import (
"bufio"
"fmt"
"math/rand"
"os"
"strings"
"time"
)