Tutorial by Topics

Proc.new(block) lambda { |args| code } ->(arg1, arg2) { code } object.to_proc { |single_arg| code } do |arg, (key, value)| code end Be careful about operator precedence when you have a line with multiple methods chained, like: str = "abcdefg" puts str.gsub(/./) do |mat...
Conditional expressions, involving keywords such as if, else if, and else, provide Swift programs with the ability to perform different actions depending on a Boolean condition: True or False. This section covers the use of Swift conditionals, Boolean logic, and ternary statements. For more in...
Scala has first-class functions. Difference between functions and methods: A function is not a method in Scala: functions are a value, and may be assigned as such. Methods (created using def), on the other hand, must belong to a class, trait or object. Functions are compiled to a class exte...
Not all elements of the XML input will end up as elements of the parsed tree. Currently, this module skips over any XML comments, processing instructions, and document type declarations in the input. Nevertheless, trees built using this module’s API rather than parsing from XML text can have comm...
Scope is the context in which variables live and can be accessed by other code in the same scope. Because JavaScript can largely be used as a functional programming language, knowing the scope of variables and functions is important as it helps to prevent bugs and unexpected behavior at runtime. ...
read.csv(file, header = TRUE, sep = ",", quote = """, dec = ".", fill = TRUE, comment.char = "", ...) read.csv2(file, header = TRUE, sep = ";", quote = """, dec = ",", fill = TRUE, comment.char = "", ....

npm

Node Package Manager (npm) provides following two main functionalities: Online repositories for node.js packages/modules which are searchable on search.nodejs.org. Command line utility to install Node.js packages, do version management and dependency management of Node.js packages. npm <com...
Express is a minimal and flexible Node.js web application framework, providing a robust set of features for building web applications. The official website of Express is expressjs.com. The source can be found on GitHub. app.get(path [, middleware], callback[, callback...]) app.put(path [, mi...
Python provides both builtin methods and external libraries for creating, modifying, parsing, and manipulating dates and times.
VersionRelease Date0.6.0-dev2017-06-010.5.02016-09-190.4.02015-10-080.3.02014-08-210.2.02013-11-170.1.02013-02-14
void session_abort ( void ) int session_cache_expire ([ string $new_cache_expire ] ) void session_commit ( void ) string session_create_id ([ string $prefix ] ) bool session_decode ( string $data ) bool session_destroy ( void ) string session_encode ( void ) int session_gc ( void ) array ...
There are many situations where it is useful to return several values from a function: for example, if you want to input an item and return the price and number in stock, this functionality could be useful. There are many ways to do this in C++, and most involve the STL. However, if you wish to avoi...
Strings are objects that represent sequences of characters. The standard string class provides a simple, safe and versatile alternative to using explicit arrays of chars when dealing with text and other sequences of characters. The C++ string class is part of the std namespace and was standardized i...
In Node.js, resource intensive operations such as I/O are performed asynchronously, but have a synchronous counterpart (e.g. there exists a fs.readFile and its counterpart is fs.readFileSync). Since Node is single-threaded, you should be careful when using synchronous operations, because they will...
Kotlin is a statically-typed object-oriented programming language developed by JetBrains primarily targeting the JVM. Kotlin is developed with the goals of being quick to compile, backwards-compatible, very type safe, and 100% interoperable with Java. Kotlin is also developed with the goal of prov...
Use context processors to add variables that are accessible anywhere in your templates. Specify a function, or functions that return dicts of the variables you want, then add those functions to TEMPLATE_CONTEXT_PROCESSORS.
import defaultMember from 'module'; import { memberA, memberB, ... } from 'module'; import * as module from 'module'; import { memberA as a, memberB, ... } from 'module'; import defaultMember, * as module from 'module'; import defaultMember, { moduleA, ... } from 'module'; import 'module'; ...

Page 19 of 428