Skip to content

Instantly share code, notes, and snippets.

download neo4j

run from docker

docker run --rm -p 7474:7474 -p 7687:7687 -v store:/data/databases/graph.db --env NEO4J_ACCEPT_LICENSE_AGREEMENT=yes neo4j:3.5-enterprise

cypher cheat sheet

# run clean neo4j instance
docker run --rm \
-p 7474:7474 \
-p 7687:7687 \
--env NEO4J_ACCEPT_LICENSE_AGREEMENT=yes \
neo4j:3.5-enterprise
# import your mails
docker run --rm \
-v /home/jarek/Pobrane/Takeout/Poczta:/mbox \
@kcrimson
kcrimson / mmap.pony
Created November 18, 2015 23:42
how to map files into memory in pony
use "files"
use "collections"
use @mmap[Pointer[U8]](addr : Pointer[U8], length : U64, prot : I32, flags : I32, fd : I32, off_t : I64)
use @open[I32](name : Pointer[U8] tag,flags :U16)
use @close[I32](fd : I32)
actor Main
new create(env : Env) =>
let fd : I32 = @open("file".cstring(),2)

Recograph

package symentis;
import static com.google.common.collect.FluentIterable.from;
import static java.util.Collections.list;
import java.util.Enumeration;
import java.util.Properties;
import javax.mail.Address;
import javax.mail.Folder;
@kcrimson
kcrimson / gist:3325973
Created August 11, 2012 17:50
Mule 3 fork and join sample
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:vm="http://www.mulesoft.org/schema/mule/vm" xmlns:http="http://www.mulesoft.org/schema/mule/http"
xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:mulexml="http://www.mulesoft.org/schema/mule/xml"
xmlns:spring="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="CE-3.3.0"
xsi:schemaLocation="http://www.mulesoft.org/schema/mule/vm http://www.mulesoft.org/schema/mule/vm/current/mule-vm.xsd
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd