Tutorial by Examples: e

Let’s try some basic expression in the REPL: CL-USER> (+ 1 2 3) 6 CL-USER> (- 3 1 1) 1 CL-USER> (- 3) -3 CL-USER> (+ 5.3 (- 3 2) (* 2 2)) 10.3 CL-USER> (concatenate 'string "Hello, " "World!") "Hello, World!" CL-USER> The basic building ...
Two popular options are to use: ipython notation: In [11]: df = pd.DataFrame([[1, 2], [3, 4]]) In [12]: df Out[12]: 0 1 0 1 2 1 3 4 Alternatively (this is popular over in the python documentation) and more concisely: df.columns # Out: RangeIndex(start=0, stop=2, step=1) df[0...
Use the pandas library as pd, this can be assumed (the import does not need to be in every example) import pandas as pd PEP8! 4 space indentation kwargs should use no spaces f(a=1) 80 character limit (the entire line fitting in the rendered code snippet should be strongly preferred)
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_...
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...
//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") }
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...
This is the default calling convention for 64-bit applications on many POSIX operating systems. Parameters The first eight scalar parameters are passed in (in order) RDI, RSI, RDX, RCX, R8, R9, R10, R11. Parameters past the first eight are placed on the stack, with earlier parameters closer to th...

Page 378 of 1191