Tutorial by Examples: a

'use strict'; const Hapi = require('hapi'); const Joi = require('joi'); // Create a server with a host and port const server = new Hapi.Server(); server.connection({ host: 'localhost', port: 8000 }); /** * Add a route path with url param */ server.route({ method...
In WSO2 registry is a content store and a metadata repository. In WSO2 products and particularly WSO2 ESB uses registry to store metadata, artifacts (WSDL, XSD etc.,) and other service configurations like endpoints, sequences etc., Registry in WSO2 ESB has three flavours. Local registry Config...
Shell sort, also known as the diminishing increment sort, is one of the oldest sorting algorithms, named after its inventor Donald. L. Shell (1959). It is fast, easy to understand and easy to implement. However, its complexity analysis is a little more sophisticated. The idea of Shell sort is the f...
public class ShellSort { static void SortShell(int[] input, int n) { var inc = 3; while (inc > 0) { int i; for (i = 0; i < n; i++) { var j = i; var temp = input[i]; w...
foo = frozenset(["bar", 1, "Hello!"]) foo[2] = 7 # ERROR foo.add(3) # ERROR Second line would return an error since frozenset members once created aren't assignable. Third line would return error as frozensets do not support functions that can manipulate members.
Given a class SomeClass, let's see how the TypeScript is transpiled into JavaScript. TypeScript source class SomeClass { public static SomeStaticValue: string = "hello"; public someMemberValue: number = 15; private somePrivateValue: boolean = false; constructor ()...
Rabin-Karp Algorithm is a string searching algorithm created by Richard M. Karp and Michael O. Rabin that uses hashing to find any one of a set of pattern strings in a text. A substring of a string is another string that occurs in. For example, ver is a substring of stackoverflow. Not to be confuse...
Matrices are essentially two-dimensional arrays. That means that it associates (i, j) coordinates, where i is the row and j is the column, to a value. So, you could have : m3, 4 = "Hello" The easiest implementation is to make an array or arrays. In python, that would go as follows. ma...
Alsatian is a unit testing framework written in TypeScript. It allows for usage of Test Cases, and outputs TAP-compliant markup. To use it, install it from npm: npm install alsatian --save-dev Then set up a test file: import { Expect, Test, TestCase } from "alsatian"; import { SomeM...
This is a basic tslint.json setup which prevents use of any requires curly braces for if/else/for/do/while statements requires double quotes (") to be used for strings { "rules": { "no-any": true, "curly": true, "quotema...
\documentclass{article} When to use the article class ? For articles in scientific journals, presentations, short reports, program documentation, invitations, ... 1 What are the specificities of this class ? An article doesn't contain chapters or parts. It can be divided in sections, subsectio...
The Maya Python interpreter works like a regular Python intepreter, so it will use the same environment variables to find importable files as any other Python 2.6 or 2.7 installation (described in more detail in the Python documentation. If there is no other python installation on your machine you ...
REPLACE ==magic-number== BY ==65535==.
GCobol >>SOURCE FORMAT IS FIXED *> *************************************************************** *> Purpose: RELATIVE file organization REWRITE example *> Tectonics: cobc -g -debug -W -x relatives.cob *> *********************************************...
SET handle TO returned-pointer SET handle UP BY LENGTH(returned-pointer) SET ADDRESS OF buffer-space TO handle MOVE buffer-space TO work-store DISPLAY "Second element is " work-store
GCobol >>SOURCE FORMAT IS FIXED *> *************************************************************** *> Purpose: Demonstration of the SEARCH verb *> Tectonics: cobc -x searchlinear.cob *> *************************************************************** ...
GCobol >>SOURCE FORMAT IS FIXED *> *************************************************************** *> Purpose: Demonstration of the SEARCH ALL verb and table SORT *> Tectonics: cobc -x -fdebugging-line searchbinary.cob *> ******************************...
GCobol* GnuCOBOL SORT verb example using standard in and standard out identification division. program-id. sorting. environment division. input-output section. file-control. select sort-in assign keyboard organizat...
When used in an expression out << setiosflags(mask) or in >> setiosflags(mask), sets all format flags of the stream out or in as specified by the mask. List of all std::ios_base::fmtflags : dec - use decimal base for integer I/O oct - use octal base for integer I/O hex - use hexade...
start indexing key is less than keyfield of indexing-record invalid key display "bad start: " keyfield of indexing-record set no-more-records to true not invalid key read indexing previous record at end set no-more-records to true ...

Page 808 of 1099