Tutorial by Examples: ti

Node.js npm install bluebird Then: var Promise = require("bluebird"); Browsers There are many ways to use bluebird in browsers: Direct downloads Full build bluebird.js Full build minified bluebird.min.js Core build bluebird.core.js Core build minified bluebird.core.min.js...
Detailed instructions on getting jsf-2 set up or installed. Requirements: JDK 1.6+ Java Servlet 2.5 Installing jsf-2 on Tomcat Installing jsf-2 on Glassfish
An expression template is a compile-time optimization technique used mostly in scientific computing. It's main purpose is to avoid unnecessary temporaries and optimize loop calculations using a single pass (typically when performing operations on numerical aggregates). Expression templates were init...
To install Cucumber for use with Ruby simply use the command gem install cucumber Alternatively, if you are using bundler, you can add the following line to your Gemfile gem 'cucumber' And then run bundler bundle install [I think this belongs in its own topic, Installation. I created tha...
Every Python statement in Vim should be prefixed with the :python command, to instruct Vim that the next command is not Vimscript but Python. To avoid typing this command on each line, when executing multi-line Python code, it is possible to instruct Vim to interpret the code between two marker exp...
Consider these two pieces of code: int a = 1000; int b = a + 1; and Integer a = 1000; Integer b = a + 1; Question: Which version is more efficient? Answer: The two versions look almost the identical, but the first version is a lot more efficient than the second one. The second version is...
You can organize the execution of your instrumented unit tests defining a Suite. /** * Runs all unit tests. */ @RunWith(Suite.class) @Suite.SuiteClasses({MyTest1.class , MyTest2.class, MyTest3.class}) public class AndroidTestSuite {} Then in AndroidStudio you can run...
Tableau offers a 2 week free trial for all of their licensed products. Tableau also offers licenses to Students for free here and nearly free Desktop licenses for non-profit organizations here. To get started with a free trial, navigate to Tableau Products to see a list of their offerings which inc...
You can set the minimum and the maximum date that UIDatePicker can show. Minimum date [datePicker setMinimumDate:[NSDate date]]; Maximum date [datePicker setMaximumDate:[NSDate date]];
You can change property minuteInterval to set the interval displayed by the minutes wheel. The default value is 1, the maximum value is 30. let datePicker = UIDatePicker(frame: CGRect(x: 0, y: 0, width: 320, height: 200) datePicker.minuteInterval = 15
The NSTimeInterval value of this property indicates the seconds from which the date picker in countdown-timer mode counts down. If the mode of the date picker is not CountDownTimer, this value is ignored. Maximum value is 86,399 seconds (23:59) let datePicker = UIDatePicker(frame: CGRect(x: 0, y: 0...
3.0 Beginning with PowerShell 3.0, you can download and update the offline help documentation using a single cmdlet. Update-Help To update help on multiple computers (or computers not connected to the internet). Run the following on a computer with the help files Save-Help -DestinationPath ...
This code uses the top level Application object to minimize the main Excel window. Sub MinimizeExcel() Application.WindowState = xlMinimized End Sub
Cassandra will not require users to login using the default configuration. Instead password-less, anonymous logins are permitted for anyone able to connect to the native_transport_port. This behaviour can be changed by editing the cassandra.yaml config to use a different authenticator: # Allow anon...
By default each user will be able to access all data in Cassandra. You'll have to configuring a different authorizer in your cassandra.yaml to grant individual object permissions to your users. # Grant all permissions to all users # authorizer: AllowAllAuthorizer # Use object permissions manage...
Splatting is done by replacing the dollar-sign $ with the splatting operator @ when using a variable containing a HashTable of parameters and values in a command call. $MyParameters = @{ Name = "iexplore" FileVersionInfo = $true } Get-Process @MyParameters Without splatti...
Detailed instructions on getting nopcommerce set up or installed.
Capabilities of the Canvas Canvas lets you programmatically draw onto your webpage: Images, Texts, Lines and Curves. Canvas drawings can be extensively styled: stroke width, stroke color, shape fill color, opacity, shadowing, linear gradients and radial gradients, font face, font ...
Recycling can be used in a clever way to simplify code. Subsetting If we want to keep every third element of a vector we can do the following: my_vec <- c(1,2,3,4,5,6,7,8,9,10) my_vec[c(TRUE, FALSE)] [1] 1 3 5 7 9 Here the logical expression was expanded to the length of the vector. ...
NSDictionary can be enumerated using fast enumeration, just like other collection types: NSDictionary stockSymbolsDictionary = @{ @"AAPL": @"Apple", @"GOOGL": @"Alphabet", ...

Page 294 of 505