Tutorial by Topics: n

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...
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...
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...
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.
Used to prevent name collisions when using multiple libraries, a namespace is a declarative prefix for functions, classes, types, etc. namespace identifier(opt) { declaration-seq } inline namespace identifier(opt) { declaration-seq } /* since C++11 */ inline(opt) namespace attribute-specifie...
The built-in collections package provides several specialized, flexible collection types that are both high-performance and provide alternatives to the general collection types of dict, list, tuple and set. The module also defines abstract base classes describing different types of collection functi...
The $ character introduces parameter expansion, command substitution, or arithmetic expansion. The parameter name or symbol to be expanded may be enclosed in braces, which are optional but serve to protect the variable to be expanded from characters immediately following it which could be interprete...
Classes and Objects are used to to make your code more efficient and less repetitive by grouping similar tasks. A class is used to define the actions and data structure used to build objects. The objects are then built using this predefined structure. class <ClassName> [ extends <Par...

Page 14 of 329