Skip to content

Instantly share code, notes, and snippets.

View anderssonfilip's full-sized avatar

Filip Andersson anderssonfilip

View GitHub Profile
@anderssonfilip
anderssonfilip / Rotate
Created May 1, 2014 22:26
Javascript rotation in a plane
var rotate = function(x, y){
var rx = 0;
var ry = 0;
var quarter = end/(Math.PI/2)
console.log("rotation: " + end)
if(end === 0)
CREATE (p:Person { name: 'Alice' })
CREATE (p:Person { name: 'Bob' })
CREATE (c:City { name: 'London' })
CREATE (c:City { name: 'Portsmouth' })
CREATE (s:StreetName { name: 'High Street' })
MATCH (s:StreetName), (c:City) CREATE (s)-[:IS_IN]->(c)
MATCH (p:Person{name:'Alice'}), (c:City{name:'London'}) CREATE (p)-[:LIVES_IN]->(c)
MATCH (p:Person{name:'Bob'}), (c:City{name:'Portsmouth'}) CREATE (p)-[:LIVES_IN]->(c)
@anderssonfilip
anderssonfilip / keybase.md
Created September 13, 2019 02:25
keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object: