Skip to content

Instantly share code, notes, and snippets.

View akollegger's full-sized avatar

Andreas Kollegger akollegger

View GitHub Profile
@akollegger
akollegger / .block
Last active August 25, 2017 05:22
block of abk
license: mit
@akollegger
akollegger / add-bolt.cypher
Created December 23, 2015 18:22
Reindeer Graph
// 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
### 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:
= Neo4j Graph Days =
:neo4j-version: 2.0.1
:author: Kenny Bastani
:bastardizer: Andreas Kollegger
:twitter: @kennybastani
== Create sample dataset
// setup
// hide
[source,cypher]
// 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'),
○ 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]
// just kidding. I haven't submitted answers, yet. But they will look like this...
start n=node:users(login="akollegger") return n
// 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 {
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>