Skip to content

Instantly share code, notes, and snippets.

= graphGist generated from spock test Neo4jCypherSameSchoolTypeInfluence.groovy
graphGist asciiDoc file for use at http://gist.neo4j.org/ [GitHub Gist]
Generated on Sun Jul 28 08:03:44 PDT 2013
//console
Initialize Graph
= graphGist generated from spock test Neo4jCypherSameSchoolTypeClassInfluence.groovy
graphGist asciiDoc file for use at http://gist.neo4j.org/ [GitHub Gist]
Generated on Sun Jul 28 08:03:44 PDT 2013
//console
Initialize Graph
= graphGist generated from spock test Neo4jCypherSameSchoolInfluence.groovy
graphGist asciiDoc file for use at http://gist.neo4j.org/ [GitHub Gist]
Generated on Sun Jul 28 08:03:44 PDT 2013
//console
Initialize Graph
@quagly
quagly / OneLabel
Last active December 20, 2015 08:09
= graphGist generated from spock test Neo4jCypherOneLabel.groovy
graphGist asciiDoc file for use at http://gist.neo4j.org/ [GitHub Gist]
Generated on Sun Jul 28 08:03:43 PDT 2013
//console
query to create plato with philosopher label
@quagly
quagly / OneNode
Last active December 20, 2015 08:09
= graphGist generated from spock test Neo4jCypherOneNode.groovy
graphGist asciiDoc file for use at http://gist.neo4j.org/ [GitHub Gist]
Generated on Sun Jul 28 08:03:44 PDT 2013
//console
query to create one node with one property
= graphGist generated from spock test Neo4jCypherErasAndSchools.groovy
graphGist asciiDoc file for use at http://gist.neo4j.org/ [GitHub Gist]
Generated on Sun Jul 28 08:03:43 PDT 2013
//console
Initialize Graph
= graphGist generated from spock test Neo4jCypherOneRelationship.groovy
graphGist asciiDoc file for use at http://gist.neo4j.org/ [GitHub Gist]
Generated on Mon Jul 29 07:11:04 PDT 2013
//console
@quagly
quagly / Cypher RelTypes
Last active December 30, 2015 15:59
Example of not able to get distinct relationship types from all paths
//console
//setup
//hide
Initialize Graph
[source,cypher]
----
CREATE
( socrates:Philosopher {name:'Socrates', uri: 'http://dbpedia.org/resource/Socrates' })
, ( plato:Philosopher {name:'Plato', uri: 'http://dbpedia.org/resource/Plato' })
@quagly
quagly / create_spark_timeseries.scala
Created October 9, 2019 16:43
generate spark dataframe timeseries
val start_dttm = Timestamp.valueOf("2019-01-01 00:00:00")
val inlineDf = (1 to 4).map { i => ((new Timestamp(start_dttm.getTime() + 60000 * i) , i)) }.toDF("eventTime","eventValue")
display(inlineDf)
@quagly
quagly / .md
Last active January 9, 2020 14:56
git-commands