Tutorial by Examples

Got to Tools | Options | Source Control | Visual Studio Team Foundation Server click on the Configure User Tools: You can add separate overrides for 'Compare' and 'Merge' operations. Click on Add and select the operation you want to override. You'd need to type the path to the tool you use, and ...
An extensible derived type may be abstract type, abstract :: base_type end type Such a derived type may never be instantiated, such as by type(base_type) t1 allocate(type(base_type) :: t2) but a polymorphic object may have this as its declared type class(base_type), allocatable :: t1 o...
A derived type is extensible if it has neither the bind attribute nor the sequence attribute. Such a type may be extended by another type. module mod type base_type integer i end type base_type type, extends(base_type) :: higher_type integer j end type higher_type end ...
ansible-playbook -i path/to/static-inventory-file -l myhost myplaybook.yml
ansible-playbook -i path/to/dynamic-inventory-script.py -l myhost myplaybook.yml See dynamic inventory for more details.
In order to get a view to slowly fade in or out of view, use an ObjectAnimator. As seen in the code below, set a duration using .setDuration(millis) where the millis parameter is the duration (in milliseconds) of the animation. In the below code, the views will fade in / out over 500 milliseconds, o...
var a:Number=0.123456789; trace(a); // 0.123456789 trace(a.toPrecision(4)); // 0.1235 trace(a.toFixed(4)); // 0.1235 trace(a.toExponential(4)); // 1.2345e-1 trace(a.toString(16)); // 0 - works for integer part only var b:Number=12345678.9876543; // a bigg...
Simple form using one variable: for i := 0; i < 10; i++ { fmt.Print(i, " ") } Using two variables (or more): for i, j := 0, 0; i < 5 && j < 10; i, j = i+1, j+2 { fmt.Println(i, j) } Without using initialization statement: i := 0 for ; i < 10; i++ {...
AngularJS directives are what controls the rendering of the HTML inside an AngularJS application. They can be an Html element, attribute, class or a comment. Directives are used to manipulate the DOM, attaching new behavior to HTML elements, data binding and many more. Some of examples of directives...
reference : NetConnection , NetStream , Video related topics : Working with Sound Basic example of playing an external video file (FLV, MP4, F4V). Code will also play M4A audio files. var nc:NetConnection = new NetConnection(); nc.connect(null); var ns:NetStream = new NetStream(nc); va...
Python 2.x2.3 x = 'hello world!' vowels = [x for x in 'AEIOU'] print (vowels) # Out: ['A', 'E', 'I', 'O', 'U'] print(x) # Out: 'U' Python 3.x3.0 x = 'hello world!' vowels = [x for x in 'AEIOU'] print (vowels) # Out: ['A', 'E', 'I', 'O', 'U'] print(x) # Out: 'hello world!' ...
The following example adds a column admin to the users table, and gives that column the default value false. class AddDetailsToUsers < ActiveRecord::Migration[5.0] def change add_column :users, :admin, :boolean, default: false end end Migrations with defaults might take a long tim...

Set

To set the options - use :set instruction. Example: :set ts=4 :set shiftwidth=4 :set expandtab :set autoindent To view the current value of the option - type :set {option}?. Example: :set ts? To reset the value of the option to its default - type :set {option}&. Example: :set ts&...
Width To make indentations 4 spaces wide: :set shiftwidth=4 Spaces To use spaces as indents, 4 spaces wide: :set expandtab :set softtabstop=4 softtabstop and sts are equivalent: :set sts=4 Tabs To use tabs as indents, 4 spaces wide: :set noexpandtab :set tabstop=4 tabstop and ts...
AngularJS code for dynamically showing/hiding an element: <p ng-show="SomeScopeProperty">This is conditionally shown.</p> KnockoutJS equivalent: <p data-bind="visible: SomeScopeObservable">This is conditionally shown.</p>
AngularJS code for rendering plain text: <p>{{ ScopePropertyX }} and {{ ScopePropertyY }}</p> KnockoutJS equivalent: <p> <!-- ko text: ScopeObservableX --><!-- /ko --> and <!-- ko text: ScopeObservableY --><!-- /ko --> </p> or: ...
AngularJS code for two-way binding on a text input: <input ng-model="ScopePropertyX" type="text" /> KnockoutJS equivalent: <input data-bind="textInput: ScopeObservableX" type="text" />
A good example of a feature that request platform specific code is when you want to implement text-to-speech (tts). This example assumes that you are working with shared code in a PCL library. A schematic overview of our solution would look like the image underneath. In our shared code we define...
[\+\-]?\d+(\.\d*)? This will match any signed float, if you don't want signs or are parsing an equation remove [\+\-]? so you have \d+(\.\d+)? Explanation: \d+ matches any integer ()? means the contents of the parentheses are optional but always have to appear together '\.' matches '.', we ...
By default Laravel project's public folder exposes the content of the app which can be requested from anywhere by anyone, the rest of the app code is invisible or inaccessible to anyone without proper permissions. After developing the application on your development machine, it needs to be pushed t...

Page 300 of 1336