CREATE (locationA:Location{name:"location A"}),
(locationA)-[:hasOfficeHours]->(officeHours:OfficeHours),
(officeHours)-[:year]->(year:Year{value:2014}),
(year)-[:month]->(month:Month{value:3,name:"March"}),
(month)-[:day]->(day24:Day{value:24, name:"Monday"}),
(day24)-[:hasInterval]->(:Interval{from:8,to:12}),
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
server { | |
listen 80 default_server; | |
listen [::]:80 default_server ipv6only=on; | |
rewrite ^ http://www.example.com permanent; | |
} | |
server { | |
server_name www.example.com | |
root /usr/share/nginx/html; | |
index index.html; |
CREATE (year2014:Year{value:2014}),
(year2014)-[:hasMonth]->(january:January:Month{name:"January",value:1}),
// Create "Location A"
CREATE
Full Request / Response Format and documentation can be read here: http://jsonapi.org/format/
POST https://api.eversport.at/v2/venues/1234/orders
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json
{
"links": {
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
var MagentoAPI = require('magento'); | |
var util = require('util'); | |
var magento = new MagentoAPI({ | |
host: 'wunderl.sernji.com', | |
port: 80, | |
path: '/api/xmlrpc/', | |
login: 'user', | |
pass: 'password' | |
}); |
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
/** GRANT [type of permission] ON [database name].[table name] TO ‘[username]’@'localhost’ IDENTIFIED BY 'some_pass' WITH GRANT OPTION; **/ | |
GRANT ALL PRIVILEGES ON DATABASE.* TO 'newuser'@'localhost' IDENTIFIED BY 'some_pass'; | |
FLUSH PRIVILEGES; | |
/** BACKUP USER **/ | |
GRANT SELECT,LOCK TABLES ON *.* TO 'backup'@'localhost' IDENTIFIED BY 'PASS'; |
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/sh | |
# ------------------------------------------------------------------------------ | |
# SOME INFOS : fairly standard (debian) init script. | |
# Note that node doesn't create a PID file (hence --make-pidfile) | |
# has to be run in the background (hence --background) | |
# and NOT as root (hence --chuid) | |
# | |
# MORE INFOS : INIT SCRIPT http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit | |
# INIT-INFO RULES http://wiki.debian.org/LSBInitScripts | |
# INSTALL/REMOVE http://www.debian-administration.org/articles/28 |
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
var foo = function(text, callback) { | |
if(text == "hello") { | |
callback("hello world"); | |
console.log("Someone said hello"); | |
} | |
callback("why don't you say hello?"); | |
console.log("nobody likes me :("); | |
} | |
foo("hello", function(result) { |
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
options: { | |
patterns: [ | |
{ | |
src: ['assets/js/**/*.js', 'assets/css/**/*.css',], | |
search: /@@([^@]+?)@@/g, | |
replace: function(matched, part, offset, string) { | |
if(summary[part]) { | |
return summary[part]; | |
} | |
else { |
OlderNewer