Skip to content

Instantly share code, notes, and snippets.

View akollegger's full-sized avatar

Andreas Kollegger akollegger

View GitHub Profile
@akollegger
akollegger / .block
Created August 25, 2017 08:15
Force Dragging I
license: gpl-3.0
height: 600
@akollegger
akollegger / .block
Created August 25, 2017 05:32 — forked from mbostock/.block
Force-Directed Graph
license: gpl-3.0
height: 600
@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