Tutorial by Examples

This example explains the different methods to install Yarn for your OS. macOS Homebrew brew update brew install yarn MacPorts sudo port install yarn Adding Yarn to your PATH Add the following to your preferred shell profile (.profile, .bashrc, .zshrc etc) export PATH="$PATH:`yarn ...
The yarn init command will walk you through the creation of a package.json file to configure some information about your package. This is similar to the npm init command in npm. Create and navigate to a new directory to hold your package, and then run yarn init mkdir my-package && cd my-pa...
// add an item to a menu menu.addItem(item) // remove and item from a menu menu.removeItem(item)
Download and install the Unity Editor from the Unity Download page. Installing Unity using Download Assistant Unity Download Assistant is a small executable program which lets you select which components of the Unity Editor you want to download and install. If you’re not sure which components you...
Design Approaches Driving Factor: What should be our driving engine? Should it be test functions, keywords, data or behavior? Here we list different approaches with examples. Data Driven/Keyword Driven/Hybrid: Code Driven: BDD/TDD/ATDD:
Steps for Getting Started: Download Eclipse Create a Java Maven Project with following example package organization src/test/java com.example.pageobjects com.example.steps com.example.runner src/test/resources Add Cucumber Eclipse Plugin : https://github.com/cucumber/cucumber-eclipse/wik...
SELECT ... WHERE dt >= '2017-02-01' AND dt < '2017-02-01' + INTERVAL 1 MONTH Sure, this could be done with BETWEEN and inclusion of 23:59:59. But, the pattern has this benefits: You don't have pre-calculate the end date (which is often an exact length from the start) You...
The REGEXP (or its synonym, RLIKE) operator allows pattern matching based on regular expressions. Consider the following employee table: +-------------+-------------+-------------+--------------+----------+ | EMPLOYEE_ID | FIRST_NAME | LAST_NAME | PHONE_NUMBER | SALARY | +-------------+----...
In this example, we use the default, no-args GridLayout() constructor to create a layout with a single column. public class SingleColumnGridLayoutExample { private final Display display; private final Shell shell; public SingleColumnGridLayoutExample() { display = new Di...
Similar to the Single-Column Example above, if we instead use the GridLayout(int, boolean) constructor, we can create a layout with multiple columns. In this case we create two columns, each of which are the same width. public class MultiColumnGridLayoutExample { private final Display displ...
By leveraging some of the member variables in the GridLayout instance, we can change the margins around the layout, and spacing between cells. In this example we set the following: verticalSpacing = 0 - Sets the vertical spacing between cells to 0px. horizontalSpacing = 20 - Sets the horizontal ...
Just add these lines to the initialization RecyclerView mRecyclerView = (RecyclerView) view.findViewById(recyclerView); mRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity())); mRecyclerView.addItemDecoration(new DividerItemDecoration(getActivity(), DividerItemDecoration.VERTICAL))...
Detailed instructions on getting visual-studio-cordova set up or installed.
By putting multiple figure handles into a graphics array, multiple figures can be saved to the same .fig file h(1) = figure; scatter(rand(1,100),rand(1,100)); h(2) = figure; scatter(rand(1,100),rand(1,100)); h(3) = figure; scatter(rand(1,100),rand(1,100)); savefig(h,'ThreeRandomScatterp...
If you care about your indices (yes, that's the plural of index), you should maintain them, especially if you do frequent inserts or deletes that affect them. Azure Automation provides an almost ready runbook that you can use and schedule to perform automated index rebuilding. Here's what you have ...
Detailed instructions on getting webforms set up or installed.
The Symfony Installer is a command line tool that helps you to create new Symfony applications. It requires PHP 5.4 or higher. Downloading and installing the Symfony Installer on Linux / MacOS Open a terminal and execute the following commands: sudo mkdir -p /usr/local/bin sudo curl -LsS https:/...
To be able to run tests Chrome broser should be pre-installed on Android device,
To be able to work with web-application on Android device using Selenium below pre-conditions should be met: Android SDK installed on computer Chrome browser installed on Android device Debugging mode enabled on Android device Start adb and chromedriver server with below commands from cmd/Te...
Caching Online Images Using AlamofireImage. It works on top of Alamofire in Swift. Install AlamofireImage using cocoapods pod 'AlamofireImage', '~> 3.1' SetUp: Import AlamofireImage and Alamofire SetUp the Image cache: let imageCache = AutoPurgingImageCache( memoryCapacity: 111_111_111,...

Page 1188 of 1336