I hereby claim:
- I am elventear on github.
- I am elventear (https://keybase.io/elventear) on keybase.
- I have a public key whose fingerprint is 3CF5 94D8 6350 A6EC 088A 4F6E FF3F A3A3 6A35 26BA
To claim this, I am signing this object:
// Source: https://groups.google.com/forum/#!topic/neo4j/x_US3cIH5wU | |
index = g.getRawGraph().index() | |
products = index.forNodes('products') | |
hits = products.query("name:*foo*") | |
results = new com.tinkerpop.blueprints.pgm.impls.neo4j.util.Neo4jVertexSequence(hits, g)._().map.toList() |
// Source: https://groups.google.com/forum/?fromgroups=#!topic/gremlin-users/60NUGlnyCkw | |
import org.neo4j.kernel.EmbeddedReadOnlyGraphDatabase | |
db = new EmbeddedReadOnlyGraphDatabase('/var/lib/neo4j/data/graph.db') | |
g = new Neo4jGraph(db) |
git commit --amend --reset-author |
#!/bin/bash | |
# http://jeremy.zawodny.com/blog/archives/010717.html | |
FAIL=0 | |
echo "starting" | |
./sleeper 2 0 & | |
./sleeper 2 1 & | |
./sleeper 3 0 & |
git commit --amend --date="$(date -R)" |
#!/usr/bin/env zsh | |
local SCRIPT_NAME=$(basename $0) | |
local SCRIPT_DIR=$(dirname $0) | |
. $SCRIPT_DIR/../dependencies/zsh-functional/functional.plugin.zsh | |
function usage { | |
test ${#1} -gt 0 && echo ERROR: $1 | |
echo $SCRIPT_NAME SOURCE_TYPE DEST_TYPE |
defaults write org.vim.MacVim MMVerticalSplit YES |
alias wget="curl -O --retry 999 --retry-max-time 0 -C -" | |
## | |
# Line should be placed at ~/.bash_profile | |
# Source: http://www.mymacosx.com/terminal/wget-replacement-macos.html | |
# Source: http://superuser.com/questions/142459/persistent-retrying-resuming-downloads-with-curl | |
## |
List.metaClass.collectWithIndex = { yield -> | |
def collected = [] | |
delegate.eachWithIndex { listItem, index -> | |
collected << yield(listItem, index) | |
} | |
return collected | |
} | |
assert [1, 1, 1, 1, 1].collectWithIndex { it, index -> it + index } == [1, 2, 3, 4, 5] |
I hereby claim:
To claim this, I am signing this object: