Tutorial by Examples: st

FirebaseUI offers Android, iOS, and Web clients. You can get started with them like so: Android: // app/build.gradle dependencies { // Single target that includes all FirebaseUI libraries compile 'com.firebaseui:firebase-ui:0.5.2' // FirebaseUI Database only compile 'com.f...
Let's say we have multiple data sources which include database, file, prompt and argumentList. Depending on chosen source we change our approach: def loadData(dataSource: Symbol): Try[String] = dataSource match { case 'database => loadDatabase() // Loading data from database case 'file =&g...
We can add adaptivity to any subclass of UIView which we add on view controller in nib file. Lets take an example of adding adaptivity using size classes to a view. Add a view on view controller as: Now we need to pin this view to it's superview for fixing it's size and position using con...
Below is and HTML page <html> <head> <title>Select Example by Index value</title> </head> <body> <select name="Travel"><option value="0" selected> Please select</option> <option value="1">Car</option&...
Sometimes a component needs to render some data from a remote endpoint (e.g. a REST API). A standard practice is to make such calls in componentDidMount method. Here is an example, using superagent as AJAX helper: import React from 'react' import request from 'superagent' class App extends Rea...
Things are easy when you have to use a C++ library in a Python project. Just you can use Boost. First of all here is a list of components you need: A CMakeList.txt file, because you're going to use CMake. The C++ files of the C++ project. The python file - this is your python project. Let's...
Checking Requirements Run bin/symfony_requirements for checking symfony requirements and php cli setting. Install all packages that needed to run a symfony project. Setting your php.ini for example setting timezone and short_open_tag. Setting both php.ini for your php webserver (eg: /etc/php/apache...
Assume the following structure: var dog = { name : "Woofer", age : 7 }; Enum matching can be performed as follows: var message = switch(dog) { case { name : "Woofer" }: "I know you, Woofer!"; case _: "I don't know you, so...
This is example has extracted from this boilerplate. Custom middleware: export default function clientMiddleware() { return ({dispatch, getState}) => { return next => action => { if (typeof action === 'function') { return action(dispatch, getState); } ...
(Tested with ANTLR 4.5.3, Eclipse Neon, ANTLR 4 IDE 0.3.5, and Java 1.8) Download the latest ANTLR. Make sure to get the complete ANTLR Java binaries jar. Save to any appropriate location, for example the folder where other Java libraries are stored. It doesn’t matter where, just remember the loc...
The most basic case to lift a particular window above the others, just call the .lift() method on that window (either Toplevel or Tk) import tkinter as tk #import Tkinter as tk #change to commented for python2 root = tk.Tk() for i in range(4): #make a window with a label window = tk...
Analog to np.loadtxt, np.savetxt can be used to save data in an ASCII file import numpy as np x = np.random.random([100,100]) np.savetxt("filename.txt", x) To control formatting: np.savetxt("filename.txt", x, delimiter=", " , newline="\n", comment...
:!mkdir -p %:h to create the missing directories, then :w
A cycle in a directed graph exists if there's a back edge discovered during a DFS. A back edge is an edge from a node to itself or one of the ancestors in a DFS tree. For a disconnected graph, we get a DFS forest, so you have to iterate through all vertices in the graph to find disjoint DFS trees. ...
STDDEV returns the sample standard deviation of expr, a set of numbers. You can use it as both an aggregate and analytic function. It differs from STDDEV_SAMP in that STDDEV returns zero when it has only 1 row of input data, whereas STDDEV_SAMP returns null. Oracle Database calculates the standard ...
ASP.NET provides the following controls Drop-down list List box Radio button list Check box list Bulleted list These control let a user choose from one or more items from the list. List boxes and drop-down lists contain one or more list items. These lists can be loaded either by code or b...
A radio button list presents a list of mutually exclusive options. A check box list presents a list of independent options. These controls contain a collection of ListItem objects that could be referred to through the Items property of the control. Basic syntax of radio button list: <asp:RadioB...
The bulleted list control creates bulleted lists or numbered lists. These controls contain a collection of ListItem objects that could be referred to through the Items property of the control. Basic syntax of a bulleted list: <asp:BulletedList ID="BulletedList1" runat="server&quo...
When you add either of these tracking snippets to your website, you send a pageview for each page your users visit. Google Analytics processes this data and can infer a great deal of information including: The total time a user spends on your site. The time a user spends on each page and in what o...
A process with a sensitivity list cannot also contain wait statements. It is equivalent to the same process, without a sensitivity list and with one more last statement which is: wait on <sensitivity_list>; Example: process(clock, reset) begin if reset = '1' then q &l...

Page 242 of 369