Tutorial by Examples

In the HTTP server code (e.g. server.js): const EventEmitter = require('events') const serverEvents = new EventEmitter() // Set up an HTTP server const http = require('http') const httpServer = http.createServer((request, response) => { // Handler the request... // Then emit an event...
Event Emitters are built into Node, and are for pub-sub, a pattern where a publisher will emit events, which subscribers can listen and react to. In Node jargon, publishers are called Event Emitters, and they emit events, while subscribers are called listeners, and they react to the events. // Requ...
FlashDevelop is a multi-platform open source IDE created in 2005 for Flash developers. With no cost, it's a very popular way to get started developing with AS3. To Install FlashDevelop: Download The Installation File and run the installer Once installation is complete, run FlashDevelop. On the ...
from http://flex.apache.org/doc-getstarted.html Download the SDK installer Run the SDK installer. The first question you will be asked is the installation directory. on a Mac, use /Applications/Adobe Flash Builder 4.7/sdks/4.14.0/ on a PC, use C:\Program Files(x86)\Adobe Flash Builder ...
Selenium is a set of tools designed to automate browsers. It is commonly used for web application tests across multiple platforms. There are a few tools available under the Selenium umbrella, such as Selenium WebDriver(ex-Selenium RC), Selenium IDE and Selenium Grid. WebDriver is a remote control i...
Objective-C NSMutableAttributedString *attributeString = [[NSMutableAttributedString alloc] initWithString:@"Your String here"]; [attributeString addAttribute:NSStrikethroughStyleAttributeName value:@2 range:NSMakeRange(0, [attributeString length...
AEM can be installed as a standalone executable JAR file or through web application servers, such as JBoss and WebSphere, as a WAR file. Prerequisites AEM 6.2 needs at minimum the following in order to run Java Runtime Environment (JRE) 1.8x (64bit) 5GB of free disk space for installation 2GB...
/* This is a CSS comment */ div { color: red; /* This is a CSS comment */ }
/* This is a CSS comment */ div { color: red; }
{ "some_string": null, "ather_string": "something" } If we will use this way: JSONObject json = new JSONObject(jsonStr); String someString = json.optString("some_string"); We will have output: someString = "null"; So we need to...
Detailed instructions on getting braintree set up or installed.
A VectorDrawable should consist of at least one <path> tag defining a shape <vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" android:height="24dp" android:viewportWidth="24.0" android:viewpor...
A <clip-path> defines a shape which acts as a window, only allowing parts of a <path> to show if they are within the <clip-path> shape and cutting off the rest. <vector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.an...
A <group> tag allows the scaling, rotation, and position of one or more elements of a VectorDrawable to be adjusted: <vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" android:height="24dp" android:viewportWidth="24...
An AnimatedVectorDrawable requires at least 3 components: A VectorDrawable which will be manipulated An objectAnimator which defines what property to change and how The AnimatedVectorDrawable itself which connects the objectAnimator to the VectorDrawable to create the animation The following...
In AS3, display assets are not visible until they are added to the Display List. The AIR/Flash runtime has a hierarchical display structure (parent child relationship where children can have their own children), with the stage being the top level parent. To add something to the display list, you u...
The s interpolator allows the usage of variables within a string. val name = "Brian" println(s"Hello $name") prints "Hello Brian" to the console when ran.
Swift let frame = CGRect(x: 0, y: 0, width: 100, height: 100) let textField = UITextField(frame: frame) Objective-C CGRect *frame = CGRectMake(0, 0, 100, 100); UITextField *textField = [[UITextField alloc] initWithFrame:frame]; Interface Builder You can also add a UITextField to a storybo...
Add an accessory view above the keyboard. This is commonly used for adding next/previous buttons, or additional buttons like Done/Submit (especially for the number/phone/decimal pad keyboard types which don't have a built-in return key). Swift let textField = UITextField() // initialized however ...
Swift textField.autocapitalizationType = .None Objective-C textField.autocapitalizationType = UITextAutocapitalizationTypeNone; All options: .None \ UITextAutocapitalizationTypeNone : Don't autocapitalize anything .Words \ UITextAutocapitalizationTypeWords : Autocapitalize every word .S...

Page 198 of 1336