Skip to content

Instantly share code, notes, and snippets.

View tobias-johansson's full-sized avatar

Tobias Johansson tobias-johansson

View GitHub Profile
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
n
0
1
2
CALL {
USE fabric.persons
MATCH (person:Person {id: $Person})-[:KNOWS]-(friend)
RETURN collect(friend.id) AS personIds
}
WITH *, [g in fabric.graphIds() WHERE g <> 0] AS gids
UNWIND gids AS gid
CALL {
USE fabric.graph(gid)

Keybase proof

I hereby claim:

  • I am tobias-johansson on github.
  • I am tobjoh (https://keybase.io/tobjoh) on keybase.
  • I have a public key whose fingerprint is 2553 C77C D75D DF99 06D8 4D64 15E7 BC9A 1A7B 980F

To claim this, I am signing this object:

@tobias-johansson
tobias-johansson / dk
Last active March 21, 2016 12:54
Docker Aliases
#!/bin/bash
case "$1" in
pss )
exec docker ps --format "table {{.ID}}\t{{.Names}}\t{{.Image}}\t{{.RunningFor}}" ${@:2} ;;
enter )
exec docker exec -ti $2 bash ;;
* )
exec docker $@ ;;
esac
@tobias-johansson
tobias-johansson / gist:7596b9e288883c400898
Created May 2, 2015 22:59
Slick 3.0.0 with postgresql 9.4
// Slick 3.0.0 with postgresql 9.4
libraryDependencies ++= Seq(
"com.typesafe.slick" %% "slick" % "3.0.0",
"org.slf4j" % "slf4j-nop" % "1.6.4",
"com.zaxxer" % "HikariCP-java6" % "2.3.7",
"org.postgresql" % "postgresql" % "9.4-1201-jdbc41"
)
@tobias-johansson
tobias-johansson / android-update-tools.sh
Last active August 29, 2015 14:13
Update android sdk tools on CI server
#!/bin/bash
## Dump list, for reference
# android list sdk -u -a -e
## No 'tag' for getting latest build tools, for some reason
BUILD_TOOLS_LATEST=$(android list sdk -u -a -e | grep 'build-tools-' | head -n 1 | cut -d' ' -f2)
## Run through expect to accept license
expect -c "
#!/bin/bash
PROJECT_NAME="$1"
SCALA_VERSION="2.11.4"
SCALATEST_VERSION="2.2.1"
shift
SBT_COMMANDS="$@"
# ==== Dirs ====
.build-name {
max-width: none;
}