Skip to content

Instantly share code, notes, and snippets.

= Ishkur's Guide to Electronic Music
:neo4j-version: 2.0.0
:author: Matthieu Totet
:twitter: @totetmatt
:tags: Music, Eletronic, Techno
Original Source : http://techno.org/electronic-music-guide/
//hide
= Frontières Terrestres / World Borders
:neo4j-version: 2.0.0
:author: Matthieu Totet
:twitter: @totetmatt
:tags: World, Border, Fr
The Datasource !
//hide
//setup
[source,cypher]
:neo4j-version: 2.0.0
:author: Matthieu Totet
:twitter: @totetmatt
:tags: Oreilly, Books, Media
= Oreilly book graph
== Dat Model
@totetmatt
totetmatt / Munchen Bahn Neo4J Gist
Last active August 29, 2015 14:14
Munchen Bahn Neo4J Gist
//hide
//setup
[source,cypher]
----
CREATE (Freising:Station {name:'Freising'}),
(Pulling:Station {name:'Pulling'}),
(Neufahrn:Station {name:'Neufahrn'}),
(Eching:Station {name:'Eching'}),
(Lohhof:Station {name:'Lohhof'}),
@totetmatt
totetmatt / WebsocketGraphStreamGephi.html
Created November 3, 2015 12:45
Small demo of Graph Streaming in Gephi from a Html page
<html>
<head>
<script type="text/javascript">
window.onload = function () {
// Gephi Streaming Master should be launch in your computer
var websocket = new WebSocket("ws://localhost:8080/workspace0?action=updateGraph")
websocket.onopen = function (event) {
// Sending event following the API and message structure defined
websocket.send('{"an":{"a":{"label":"a"}}}')
websocket.send('{"an":{"b":{"label":"b"}}}')
<?xml version="1.0" encoding="UTF-8"?>
<gexf xmlns="http://www.gexf.net/1.2draft" version="1.2" xmlns:viz="http://www.gexf.net/1.2draft/viz" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.gexf.net/1.2draft http://www.gexf.net/1.2draft/gexf.xsd">
<meta lastmodifieddate="2015-11-05">
<creator>Gephi 0.8.1</creator>
<description></description>
</meta>
<graph defaultedgetype="undirected" mode="static">
<nodes>
<node id="Salon" label="Salon">
<attvalues></attvalues>
@totetmatt
totetmatt / eurovision
Last active February 7, 2016 23:55
Eurovision - graphgist
= Eurovision Votes
:author: Matthieu Totet
:twitter: @totetmatt
For people who doesn't know, Eurovision is a song contest amongs European countries. The particularity is that countries must vote to
each other to determine the winner.
image::https://media.giphy.com/media/wxurSbW2izfkA/giphy.gif[]
import org.apache.spark.graphx._
import org.apache.spark.rdd.RDD
val r = scala.util.Random
class LayoutData(
xp: Double=0,
yp: Double=0,
dxp: Double=0,
dyp: Double=0,
https://pbs.twimg.com/tweet_video/Ck26OzdWEAAmj7z.mp4
https://pbs.twimg.com/tweet_video/Ck2lEe2WgAEr4oS.mp4
https://pbs.twimg.com/tweet_video/Ck2lEe2WgAEr4oS.mp4
https://pbs.twimg.com/tweet_video/Ck2-mDGXEAA9btW.mp4
https://video.twimg.com/ext_tw_video/742459195954434048/pu/vid/1280x720/LW_rl9jNYFvjv6hq.mp4
https://pbs.twimg.com/tweet_video/Ck3AReIXIAIl6c4.mp4
https://video.twimg.com/ext_tw_video/742466142493626368/pu/vid/1280x720/-lpZLO9KW0w5Qpbm.mp4
https://video.twimg.com/ext_tw_video/742452947334930432/pu/vid/1280x720/SQE6o1K2bGuJc0Cx.mp4
https://pbs.twimg.com/tweet_video/Ck2_KglUgAAuIsH.mp4
https://video.twimg.com/ext_tw_video/742459195954434048/pu/vid/1280x720/LW_rl9jNYFvjv6hq.mp4
davidbowie,omid
davidbowie,kim
kim,torsten
torsten,omid
brendan,torsten
ziggy,davidbowie
mick,ziggy