Tutorial by Examples

Most examples will work across multiple versions, if you are using a "new" feature you should mention when this was introduced. Example: sort_values.
Most of the time printing should be avoided as it can be a distraction (Out should be preferred). That is: a # Out: 1 is always better than print(a) # prints: 1 Prefer supporting python 2 and 3: print(x) # yes! (works same in python 2 and 3) print x # no! (python 2 only) print(x...
emacs-live is another popular emacs starter kit, with an additional focus on live music coding using overtone. You can install it in 2 ways: On *nix (e.g. linux, OSX, etc.) systems, run the following command on the command-line: bash <(curl -fksSL https://raw.github.com/overtone/emacs-l...
Cask is a project management tool which can be also used to easily manage your local emacs configuration. Installing cask is easy. You can either run the following command on the command-line: curl -fsSL https://raw.githubusercontent.com/cask/cask/master/go | python Or if you are on a mac, you...
Write-Output generates output. This output can go to the next command after the pipeline or to the console so it's simply displayed. The Cmdlet sends objects down the primary pipeline, also known as the "output stream" or the "success pipeline." To send error objects down the er...
Use ionic serve to start a local development server for app dev and testing. This is useful for both desktop browser testing, and to test within a device browser which is connected to the same network. Additionally, this command starts LiveReload which is used to monitor changes in the file system. ...
In the example below we use std::string and operator>> to read items from the file. std::ifstream file("file3.txt"); std::vector<std::string> v; std::string s; while(file >> s) // keep reading until we run out { v.push_back(s); ...
C++11 struct info_type { std::string name; int age; float height; // we define an overload of operator>> as a friend function which // gives in privileged access to private data members friend std::istream& operator>>(std::istream& is, info_...
Comparison operators compare two values and return to you a boolean (True or False) as the result. Equality The equal sign = is used both for equality comparison and assignment. If leftValue = rightValue Then ... Inequality The left angle bracket nest to the right angle bracket <> p...
There is a single assignment operator in VB. The equal sign = is used both for equality comparison and assignment. Dim value = 5 Notes Watch out for assignment vs. equality comparison. Dim result = leftValue = rightValue In this example you can see the equal sign being used as both a c...
If you have the following variables Dim leftValue As Integer = 5 Dim rightValue As Integer = 2 Dim value As Integer = 0 Addition Performed by the plus sign +. value = leftValue + rightValue 'Output the following: '7 Subtraction Performed by the minus sign -. value = leftValue - rig...
class FooWithLogging { companion object: KLogging() fun bar() { logger.info { "hello $name" } } fun logException(e: Exception) { logger.error(e) { "Error occured" } } } Using kotlin.logging framework
//iterates over a map, getting the key and value at once var map = hashMapOf(1 to "foo", 2 to "bar", 3 to "baz") for ((key, value) in map) { println("Map[$key] = $value") }
Use Do...Loop to repeat a block of statements While or Until a condition is true, checking the condition either at the beginning or at the end of the loop. Dim x As Integer = 0 Do Console.Write(x & " ") x += 1 Loop While x < 10 or Dim x As Integer = 0 Do While x &l...
Detailed instructions on getting artifactory set up or installed.

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <rect x="50" y="50" height="100" width="100" stroke="black" fill="yellow"> <animate attributeT...

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <rect x="50" y="50" height="100" width="100" stroke="black" fill="yellow"> <animateTransform a...
cdecl is a Windows 32-bit function calling convention which is very similar to the calling convention used on many POSIX operating systems (documented in the i386 System V ABI). One of the differences is in returning small structs. Parameters Parameters are passed on the stack, with the first arg...

Page 428 of 1336