CREATE (n)-[:hasProperty]-(p{name:"forename",value:"Thomas"}),
n-[:hasProperty]-({name:"surname",value:"Fritz"})
This file contains 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
#!/bin/bash | |
#### SETUP | |
# 1.) Create a simple point layer | |
curl -X POST -d '{"layer":"geom","lat":"lat","lon":"lon"}' --header "Content-Type:application/json" http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addSimplePointLayer | |
# 2.) Add a spatial index | |
curl -X POST -d '{"name":"geom","config":{"provider":"spatial","geometry_type":"point","lat":"lat","lon":"lon"}}' --header "Content-Type:application/json" http://localhost:7474/db/data/index/node/ |
This file contains 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
#!/bin/bash | |
user="${1}" | |
host="${2}" | |
like="${3}" | |
all_dbs="$(mysql -u $user -p -h "$host" -Bse 'SELECT SCHEMA_NAME from information_schema.SCHEMATA WHERE SCHEMA_NAME like "${like}"' 2> /dev/null)" | |
for db in $all_dbs | |
do | |
mysql -u $user -p -h "$host" $db -sN -e "SELECT * FROM centerdaten;" 2> /dev/null |
This file contains 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
#!/bin/bash | |
dir1="/tmp/dir1" | |
dir2="/tmp/dir2" | |
IFS=$'\n' | |
for file in $(grep -Ilsr -m 1 '.' "$dir1"); do diff -q --exclude="cache" "$file" "${file/${dir1}/${dir2}}" 2> /dev/null; done |
This file contains 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 foo (options, meta, callback) { | |
console.log(options.propOne) | |
console.log(options.propTwo[0].foo) | |
console.log(options.propTwo[0].bar) | |
console.log(options.propThree.subProp.hello) | |
meta.foo = 'bar' | |
} | |
// A IDE could extract the structure of `options` as JSON | |
// and copy that structure into the clipboard (functionality could be found in a context menu for example) |
This file contains 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
{ | |
"presets": [ | |
[ | |
"env", | |
{ | |
"targets": { | |
"node": "6.10" | |
} | |
} | |
], |
This file contains 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() { | |
// fileinput bei android deaktivieren | |
if(!navigator.userAgent.match(/Android/i)) { | |
$.getScript("/sites/all/themes/fragnebenan/js/fileinput.min.js", function(){ | |
console.log('fileinput laden'); | |
}); | |
} | |
}) | |
// oder |
This file contains 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() { | |
console.log('ich werde ausgeführt wenn alle DOM ready und alles geladen ist') | |
function triggerColLeftIcon(){ | |
$('.col-icon-left').css({'display':'none!important'}); | |
$('.col-icon-right').css({'display':'block!important'}); | |
} | |
function triggerColRightIcon(){ | |
$('.col-icon-right').css({'display':'none!important'}); | |
$('.col-icon-left').css({'display':'block!important'}); | |
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.