Tutorial by Examples: n

The Compact Serialization is the most common serialization format and is designed to be used in a web context. JWS are represented into a string that contains Base64 Url Safe encoded information seperated by an dot ".". This mode does not support unprotected headers. Line breaks added f...
The Compact Serialization is the most common serialization format and is designed to be used in a web context. JWE are represented into a string that contains Base64 Url Safe encoded information seperated by an dot ".". This mode does not support unprotected headers or AAD. Line breaks ...
The JWS JSON Serialization represents digitally signed or MACed content as a JSON object. This representation is neither optimized for compactness nor URL-safe. This syntax is optimized for more than one digital signature and/or MAC operation. Line breaks added for readability { &quo...
As the General JWS JSON Serialization Syntax, the JWS JSON Serialization represents digitally signed or MACed content as a JSON object. This representation is neither optimized for compactness nor URL-safe. The flattened syntax is optimized for the single digital signature or MAC case. Line breaks...
The JWE JSON Serialization represents encrypted content as a JSON object. This representation is neither optimized for compactness nor URL safe. This syntax is optimized for more than one recipient. Line breaks added for readability { "protected":"<integrity-protect...
The flattened JWE JSON Serialization syntax is based upon the general syntax, but flattens it, optimizing it for the single-recipient case. Line breaks added for readability { "protected":"<integrity-protected header contents>", "unprotected":...
An expression in Scheme is what is going to get executed. A S-expression, as it's usually called starts with a ( and end with a ). The first member of the expression is what is going to get executed. The following member of the expression are the parameters that will be sent to the expression during...
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...
Node.js apis can be easily constructed in Express web framework. Following example creates a simple GET api for listing all users. Example var express = require('express'); var app = express(); var users =[{ id: 1, name: "John Doe", age : 23, e...
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

Page 676 of 1088