Tutorial by Examples: o

pip install neo4jrestclient
from neo4jrestclient.client import GraphDatabase db = GraphDatabase("http://localhost:7474", username="neo4j", password="mypass")
user = db.labels.create("User") u1 = db.nodes.create(name="user1") user.add(u1) u2 = db.nodes.create(name="user2") user.add(u2) You can associate a label with many nodes in one go Language = db.labels.create("Language") b1 = db.nodes.create(name=&quot...
u1.relationships.create("likes", b1) u1.relationships.create("likes", b2) u2.relationships.create("likes", b1) Bi-directional relationships u1.relationships.create("friends", u2)
from neo4jrestclient import client q = 'MATCH (u:User)-[r:likes]->(m:language) WHERE u.name="Marco" RETURN u, type(r), m' "db" as defined above results = db.query(q, returns=(client.Node, str, client.Node)) Print results for r in results: print("(%s)-[%s]->...
$response = Requests::post("https://content.dropboxapi.com/2/files/download", array( 'Authorization' => "Bearer <ACCESS_TOKEN>", 'Dropbox-Api-Arg' => json_encode(array('path' => '/test.txt')), )); $fileContent = $response->body; $metadata = json_d...
<?php function dbx_get_file($token, $in_filepath, $out_filepath) { $out_fp = fopen($out_filepath, 'w+'); if ($out_fp === FALSE) { echo "fopen error; can't open $out_filepath\n"; return (NULL); } $url = 'https://content.dropbox...
Following example create POST api using Express. This example is similar to GET example except the use of body-parser that parses the post data and add it to req.body. Example var express = require('express'); var app = express(); // for parsing the body in POST request var bodyParser = require...
In this example, the total cost of buying food items is found by taking the number of each item and multiplying it by its cost and then adding all those values together. Instead of creating a separate column for Number times Price and then summing the values in that new column, we can calculate ...
Warning: this is not the standard way of installing Coq. For users of Linux (and MacOS) who wish to gain access to up-to-date versions of Coq or to be able to use several versions of Coq on the same machine, without the hassle of using opam, and without having to compile from source, this is an alt...
SciPy provides basic image manipulation functions. These include functions to read images from disk into numpy arrays, to write numpy arrays to disk as images, and to resize images. In the following code, only one image is used. It is tinted, resized, and saved. Both original and resulting images a...
<?php get_template_part( 'foo' ); ?> Includes ../wp-content/themes/your-theme-slug/foo.php
<?php get_template_part( 'foo','bar' ); ?> Includes ../wp-content/themes/your-theme-slug/foo-bar.php
<?php get_template_part( 'dir/foo' ); ?> Includes ../wp-content/themes/your-theme-slug/dir/foo.php
<?php get_template_part( 'dir/foo', 'bar' ); ?> Includes ../wp-content/themes/your-theme-slug/dir/foo-bar.php
.NET Core project.json supports NuGet importing (a.k.a. lying according to this SO answer). It is impossible to include a mscorlib based library due to an import statement. { "version": "1.0.0-*", "dependencies": { "Microsoft.AspNet.Identity.E...
In the example project.json below, an assembly Microsoft.AspNet.Identity.EntityFramework was added which is mscorlib based. { "version": "1.0.0-*", "dependencies": { "Microsoft.AspNet.Identity.EntityFramework": "2.2.1", ...
Targeting multiple frameworks with project.json is simple. However the result are two different compilations. Take the following example: { "version": "1.0.0-*", "dependencies": { "NETStandard.Library": "1.6.0", "...
Another popular error is the referring of packages which does not satisfy all framework on the global scope when multiple frameworks are targeted. { "version": "1.0.0-*", "dependencies": { "NETStandard.Library": "1.6.0", ...
CONNECT TO SAMPLEDB; From the command line (db2clp, terminal, db2cmd) you can write: db2 CONNECT TO SAMPLEDB

Page 635 of 1038