This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from neo4j import GraphDatabase | |
import json | |
import random | |
import logging | |
import uuid | |
# default parameters | |
URI = "bolt://localhost:7687" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// as python setdefault: put defaultValue in object if object[key] is undefined | |
_.mixin({ | |
setdefault:function(object,key,defaultValue){ | |
var d ={}; | |
d[key]=defaultValue; | |
return _(object).defaults(d)[key]; | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function dragOutElement(node,data,savename,mime){ | |
mime = mime === undefined ? "text/plain" : mime; | |
var internals ={ | |
node:node, | |
data:data, | |
savename:savename, | |
mime:mime | |
}; | |
var details = mime; |