Tutorial by Topics: o

let regex = /pattern/[flags] let regex = new RegExp('pattern', [flags]) let ismatch = regex.test('text') let results = regex.exec('text') FlagsDetailsgglobal. All matches (don't return on the first match).mmulti-line. Causes ^ & $ to match the begin/end of each line (not only begin/e...
git remote [-v | --verbose] git remote add [-t <branch>] [-m <master>] [-f] [--[no-]tags] [--mirror=<fetch|push>] <name> <url> git remote rename <old> <new> git remote remove <name> git remote set-head <name> (-a | --auto | -d | --delete | ...
This topic illustrates how to avoid adding unwanted files (or file changes) in a Git repo. There are several ways (global or local .gitignore, .git/exclude, git update-index --assume-unchanged, and git update-index --skip-tree), but keep in mind Git is managing content, which means: ignoring actuall...
“ An optional value either contains a value or contains nil to indicate that a value is missing” Excerpt From: Apple Inc. “The Swift Programming Language (Swift 3.1 Edition).” iBooks. https://itun.es/us/k5SW7.l Basic optional use cases include: for a constant (let), use of an optional within a loo...
!= - Is not equal to == - Is equal to > - greater than < - less than >= - greater than or equal to <= - less than or equal to is - test if objects are the exact same object is not = test if objects are not the exact same object ParameterDeta...
import module_name import module_name.submodule_name from module_name import * from module_name import submodule_name [, class_name, function_name, ...etc] from module_name import some_name as new_name from module_name.submodule_name import class_name [, function_name, ...etc] Importi...
Function pointers are pointers that point to functions instead of data types. They can be used to allow variability in the function that is to be called, at run-time. returnType (*name)(parameters) typedef returnType (*name)(parameters) typedef returnType Name(parameters); Name *n...
Anchor tags are commonly used to link separate webpages, but they can also be used to link between different places in a single document, often within table of contents or even launch external applications. This topic explains the implementation and application of HTML anchor tags in various roles. ...
An operator in a programming language is a symbol that tells the compiler or interpreter to perform a specific mathematical, relational or logical operation and produce a final result. C has many powerful operators. Many C operators are binary operators, which means they have two operands. For exa...
VersionRelease DatePrivate Beta2016-03-2612016-07-2522016-08-0432016-08-2942016-09-1252016-09-2962016-10-2072016-11-29
For many programmers the regex is some sort of magical sword that they throw to solve any kind of text parsing situation. But this tool is nothing magical, and even though it's great at what it does, it's not a full featured programming language (i.e. it is not Turing-complete). What does 'regu...
JOIN is a method of combining (joining) information from two tables. The result is a stitched set of columns from both tables, defined by the join type (INNER/OUTER/CROSS and LEFT/RIGHT/FULL, explained below) and join criteria (how rows from both tables relate). A table may be joined to itself or t...
var closureVar: (<parameters>) -> (<returnType>) // As a variable or property type typealias ClosureType = (<parameters>) -> (<returnType>) { [<captureList>] (<parameters>) <throws-ness> -> <returnType> in <statements> } // Complete ...
global a, b, c nonlocal a, b x = something # binds x (x, y) = something # binds x and y x += something # binds x. Similarly for all other "op=" del x # binds x for x in something: # binds x with something as x: # binds x except Exception as ex: # binds ex inside block ...
When it comes to storing, reading, or communicating data, working with the files of an operating system is both necessary and easy with Python. Unlike other languages where file input and output requires complex reading and writing objects, Python simplifies the process only needing commands to open...
try { … } catch (error) { … } try { … } finally { … } try { … } catch (error) { … } finally { … } throw new Error([message]); throw Error([message]); try allows you to define a block of code to be tested for errors while it is being executed. catch allows you to define a block of code ...
navigator.geolocation.getCurrentPosition(successFunc, failureFunc) navigator.geolocation.watchPosition(updateFunc, failureFunc) navigator.geolocation.clearWatch(watchId) The Geolocation API does what you might expect: retrieve information about the client's whereabouts, represented in lat...

Page 6 of 283