All ABK Can Graph
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Pair Bolt with Rudolf | |
MATCH (blitzen:Reindeer {name:"Blitzen"})-[blitzenToRudolf]->(rudolf:Reindeer {name:"Rudolf"}) | |
WITH rudolf,blitzen,blitzenToRudolf | |
DELETE blitzenToRudolf | |
CREATE (bolt {name:"Bolt", strength:11})-[:PAIR]->(rudolf), (blitzen)-[:FOLLOWS]->(bolt) | |
RETURN bolt,rudolf,blitzen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am akollegger on github. | |
* I am akollegger (https://keybase.io/akollegger) on keybase. | |
* I have a public key whose fingerprint is 9166 8205 7ECE CF08 1133 49DF 6A8F 2731 7FF4 55BD | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= Neo4j Graph Days = | |
:neo4j-version: 2.0.1 | |
:author: Kenny Bastani | |
:bastardizer: Andreas Kollegger | |
:twitter: @kennybastani | |
== Create sample dataset | |
// setup | |
// hide | |
[source,cypher] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// example Gruntfile for webpack | |
module.exports = function (grunt) { | |
'use strict'; | |
require('load-grunt-tasks')(grunt); | |
// Project configuration | |
grunt.initConfig({ | |
// Metadata | |
pkg: grunt.file.readJSON('package.json'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
○ sudo ./bin/dance | |
[sudo] password for akollegger: | |
Ign http://us.archive.ubuntu.com precise InRelease | |
Ign http://us.archive.ubuntu.com precise-updates InRelease | |
Ign http://us.archive.ubuntu.com precise-backports InRelease | |
Hit http://us.archive.ubuntu.com precise Release.gpg | |
Ign http://security.ubuntu.com precise-security InRelease | |
Get:1 http://us.archive.ubuntu.com precise-updates Release.gpg [198 B] | |
Get:2 http://us.archive.ubuntu.com precise-backports Release.gpg [198 B] | |
Get:3 http://security.ubuntu.com precise-security Release.gpg [198 B] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// just kidding. I haven't submitted answers, yet. But they will look like this... | |
start n=node:users(login="akollegger") return n |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// import for MongoDB Scala Driver | |
import com.osinka.mongodb.{MongoObject} | |
import com.osinka.mongodb.shape._ | |
import com.osinka.mongodb.wrapper.DBO | |
import com.osinka.mongodb.Preamble._ | |
import com.mongodb.{Mongo,DBObject} | |
case class User extends MongoObject { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/pom.xml b/pom.xml | |
index d699b0a..b76e082 100644 | |
--- a/pom.xml | |
+++ b/pom.xml | |
@@ -4,7 +4,7 @@ | |
<groupId>com.osinka</groupId> | |
<artifactId>mongo-scala-driver</artifactId> | |
<version>0.7.4</version> | |
- <packaging>jar</packaging> | |
+ <packaging>bundle</packaging> |