Tutorial by Examples: n

Resource with same path and name may exist in more than one JAR file on the classpath. Common cases are resources following a convention or that are part of a packaging specification. Examples for such resources are META-INF/MANIFEST.MF META-INF/beans.xml (CDI Spec) ServiceLoader properties con...
Detailed instructions on getting instagram set up or installed.
const md = Rx.Observable.fromEvent(document, 'mousedown').map(true); // `md` will emit `true` whenever the mouse is pressed const mu = Rx.Observable.fromEvent(document, 'mouseup').map(false); // `mu` will emit `false` whenever the mouse is depressed
const source = Rx.Observable.range(1, 3) .map(x => x * x); const subscription = source.subscribe( x => console.log(`Next: ${x}`), err => console.log(`Error: ${err}`), () => console.log(`Completed`) ); // => Next: 1 // => Next: 4 // => Next: 9 // => Compl...
const source = Rx.Observable.range(1, 3) .map((x, idx, obs) => `Element ${x} was at position ${idx}`); const subscription = source.subscribe( x => console.log(`Next: ${x}`), err => console.log(`Error: ${err}`), () => console.log(`Completed`) ); // => Next: Element 1...
In order to get the official I18N Plugin into your CLI Project we need to install it by following the next steps. First you want to install the plugin via npm: npm install aurelia-i18n Since Aurelia-I18N is backed by i18next, you should install it and a backend plugin of your choice. As an exampl...
Often when building a Docker image, the Dockerfile contains instructions that runs programs to fetch resources from the Internet (wget for example to pull a program binary build on GitHub for example). It is possible to instruct Docker to pass set set environment variables so that such programs per...
The standard library module urllib.request can be used to download web content: from urllib.request import urlopen response = urlopen('http://stackoverflow.com/questions?sort=votes') data = response.read() # The received bytes should usually be decoded according the response's characte...
The received bytes have to be decoded with the correct character encoding to be interpreted as text: Python 3.x3.0 import urllib.request response = urllib.request.urlopen("http://stackoverflow.com/") data = response.read() encoding = response.info().get_content_charset() html = d...
From inside the interative Julia shell (also known as REPL), you can access the system's shell by typing ; right after the prompt: shell> From here on, you can type any shell comand and they will be run from inside the REPL: shell> ls Desktop Documents Pictures Templates Downloa...
The simplest way is to use brew: brew install zsh After installation, you may want to set it as your default shell by doing: sudo echo '/usr/local/bin/zsh' >> /etc/shells chsh -s /usr/local/bin/zsh If you have git, and required command line tools installed you can compile and install ...
brew install zsh sudo echo '/usr/local/bin/zsh' >> /etc/shells chsh -s /usr/local/bin/zsh
textOnCurve(text,offset,x1,y1,x2,y2,x3,y3,x4,y4) Renders text on quadratic and cubic curves. text is the text to render offset distance from start of curve to text >= 0 x1,y1 - x3,y3 points of quadratic curve or x1,y1 - x4,y4 points of cubic curve or Example usage: textOnCurve("...
Detailed instructions on getting linux-device-driver set up or installed.
Puppet is a configuration management solution. Users describe the desired state of a server or software and configuration management achieves this state. This brings following advantages: Configurations can be reproduced exactly the same every time, as many times as necessary Configurations for ...
Coments "Comments are enclosed in double quotes. BEWARE: This is NOT a string!" "They can span multiple lines." Strings 'Strings are enclosed in sigle quotes.' 'Single quotes are escaped with a single quote, like this: ''.' '''' "<--This string contains one sin...
In Smalltalk almost everything you do is sending messages to objects (referred as calling methods in other languages). There are three types of messages: Unary messages: #(1 2 3) size "This sends the #size message to the #(1 2 3) array. #size is a unary message, because it takes no argumen...
Classes and methods are usually defined in the Smalltalk IDE. Classes A class definition looks something like this in the browser: XMLTokenizer subclass: #XMLParser instanceVariableNames: '' classVariableNames: '' poolDictionaries: '' category: 'XML-Parser' This is actually...
You can create extension methods to improve usability for nested collections like a Dictionary with a List<T> value. Consider the following extension methods: public static class DictListExtensions { public static void Add<TKey, TValue, TCollection>(this Dictionary<TKey, TColl...
This works well for single level right click context menu. All you need to do is create a registry entry under Classes Root HKEY_CLASSES_ROOT for specific extension. If you want to create a entry for all types of files choose * else choose extension like .pdf etc. var regmenu = Registry.ClassesR...

Page 614 of 1088