Skip to content

Instantly share code, notes, and snippets.

View jexp's full-sized avatar
🐉
Watching the chamaeleon.

Michael Hunger jexp

🐉
Watching the chamaeleon.
View GitHub Profile
@jexp
jexp / post.md
Last active August 29, 2015 14:10 — forked from ikwattro/post.md

Discover Graph Databases with Neo4j and PHP

Graph databases are now the heart of a lot of running companies dealing with high connected data.

Business graphs, social graphs, economic graphs are daily encountered words when browsing the web.

Neo4j, the world's leading graph database developed by NeoTechnology, has proven her natural ability to deal with massive amount of high connected data.

The recent use cases from TomTom and Ebay's Shuttle demonstrated the value she will bring allowing your company to provide fantastic customer experience and processing complex queries in no time.

@jexp
jexp / test.adoc
Last active August 29, 2015 14:06 — forked from CliffordAnderson/test.adoc
CREATE (you:Person {name:"You"})-[like:LIKE]->(us:Database:NoSql:Graph {name:"Neo4j" }),
       (him:Person {name:"He"})-[l:LIKE]->(us)
RETURN you, like, us

And render as a graph.

@jexp
jexp / network_test.adoc
Last active August 29, 2015 14:06 — forked from mattkaar/network_test_20140803.cypher
shortest path test

Network Setup

create (_0:`Subnet` {`cidr`:"1.0.0.240/30", `name`:"one-alpha"})
create (_1:`Subnet` {`cidr`:"1.0.0.32/29", `name`:"one-branchalpha"})

The OSCON Graph-in-a-Gist

At Neo4j, we love going to

oscon2014 logo

This year, there is a DYI Schedule page that we are very intrigued by, so let’s build a — graph of the conference!

The Model

The World Cup Graph

Initial Data Setup

As it is quite a lot of data to import into the in-memory instance this might take a bit, please bear with us.

Finding movies by decade

First let’s load in the movies data set:

Single Malt Scotch Whisky GraphGist

Motivation

During Christmas holidays, I was thinking of how I could get some new ideas to explore the world of whisky in near future. I was looking for some specific attributes like location and taste (based on the book 'Whisky Classified Choosing Single Malts by Flavour'). So why not create a GraphGist which will suggest some adventures …​

The World Cup Graph

Initial Data Setup

Dolphin Social Network

This gist is a little experiment based on this academic paper:

"" Many complex networks, including human societies, the Internet, the World Wide Web and power grids, have surprising properties that allow vertices (individuals, nodes, Web pages, etc.) to be in close contact and information to

@jexp
jexp / README.md
Last active March 24, 2020 02:13 — forked from knutwalker/README.md
Python script to parse a git commit log into Cypher create statements for Neo4j database

What is this about?

This script parses the git log and outputs Cypher statements to create a Neo4j database of your git history.

BEGIN
create constraint on (c:Commit) assert c.sha1 is unique;
COMMIT
BEGIN
CREATE (:Commit {author_email:'foo@bar.com',date_iso_8601:'2014-05-22 20:53:05 +0200',parents:['b6393fc9d5c065fd42644caad600a9b7ac911ae2'],refs:['HEAD', 'origin/master', 'master', 'in-index'],sha1:'934cacf9fe6cd0188be642b3e609b529edaad527',subject:'Some commit message',timestamp:'1400784785'});