Skip to content

Instantly share code, notes, and snippets.

I like turtles!

Jannis Hermanns jayniz

I like turtles!
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jayniz on github.
  • I am jannis ( on keybase.
  • I have a public key ASD9PibKRAXJiUb5qH8tzjOEnOxmg5_ndgzfGhy-kTKkbQo

To claim this, I am signing this object:

View broken-json-pointer.rb
require 'json'
require 'json-schema'
schema = JSON.parse <<JSON
"$schema": "",
"type": "object",
"properties": {
"tag": {
"oneOf": [
jayniz / gist:1869805
Created Feb 20, 2012
could not create data source [nioneodb]
View gist:1869805
org.neo4j.graphdb.TransactionFailureException: Could not create data source [nioneodb], see nested exception for cause of error
at org.neo4j.kernel.impl.transaction.TxModule.registerDataSource(
at org.neo4j.kernel.GraphDbInstance.start(
at org.neo4j.kernel.EmbeddedGraphDbImpl.<init>(
at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
at java.lang.reflect.Constructor.newInstance(
at org.jruby.javasupport.JavaConstructor.newInstanceDirect(
View jogger_1.rb
t =
t = t.filter(gender: 'female')
t = t.out(:likes)
t = t.filter(type: 'Movie')
t = t.sort_by{ |v, c| -c }
t = t.group_count{ |v| v }
View jogger_3.rb{}
View jogger_5.rb
class Jogger
module NamedTraversals
# Traverse to somebody's woman friends
def self.friends(current_traversal, gender)
t =
t = t.filter(gender: gender)
# Group and sort
View jogger_8.rb
gem "pacer-jogger", :require => "jogger"
yard server & sleep 3 && open http://localhost:8808/docs/file/README.markdown