Tutorial by Examples

Ionic has it's own extension for displaying a modal window. Modals can be created by inserting the template straight to the view with a <script> tag or by using a separate template file. In this example we are assuming you have a html file named modal-template.html in a folder called templates...
The minimal setup for an HTTPS server in Node.js would be something like this : const https = require('https'); const fs = require('fs'); const httpsOptions = { key: fs.readFileSync('path/to/server-key.pem'), cert: fs.readFileSync('path/to/server-crt.pem') }; const app = function ...
Once you have node.js installed on your system, just follow the procedure below to get a basic web server running with support for both HTTP and HTTPS! Step 1 : Build a Certificate Authority create the folder where you want to store your key & certificate : mkdir conf go to tha...
Initial starting point for iron-data-table. Working jsBin <!DOCTYPE html> <html> <head> <base href="https://polygit.org/polymer+:master/iron-data-table+Saulis+:master/components/"> <link rel="import" href="polymer/polymer.html&quo...
Import external style sheet. Working jsBin <!DOCTYPE html> <html> <head> <base href="https://polygit.org/polymer+:master/iron-data-table+Saulis+:master/components/"> <link rel="import" href="polymer/polymer.html"> ...
Expand row details to display additional data. Working jsBin <!DOCTYPE html> <html> <head> <base href="https://polygit.org/polymer+:master/iron-data-table+Saulis+:master/components/"> <link rel="import" href="polymer/polymer.html&...
Working jsBin <!DOCTYPE html> <html> <head> <base href="https://polygit.org/polymer+:master/iron-data-table+Saulis+:master/components/"> <link rel="import" href="polymer/polymer.html"> <script src="webcom...
This example uses a separate element to edit bound data to the row-detail template. Working jsBin <!DOCTYPE html> <html> <head> <base href="https://polygit.org/polymer+:master/iron-data-table+Saulis+:master/components/"> <link rel="import&q...
Default behavior is to de-select row when clicked twice. In some use cases, you might want to disable this de-selecting behavior. Note table.deselectItem(item) method will imperatively deselect an item. This works with both item or index (when using items array) as an argument. Working jsBin &lt...
Once you have a query, you can do more with it than just iterating the results in a for loop. Setup: from datetime import date class User(Base): __tablename__ = 'users' id = Column(Integer, primary_key=True) name = Column(Text, nullable=False) birthday = Column(Date) # ...
start Octave by running the command octave (the executable should be in your path) type disp('Hello, World!') at the Octave command prompt >> disp('Hello, World!') Hello, World!
Octave commands can be saved in a file and evaluated by loading the file using source. For instance, let hello.m be the text file containing two lines (the first line is a comment) # my first Octave program disp('Hello, World!') If you type source hello.m at an Octave command prompt you will g...
Create a 2x3 matrix. Each row is a comma-separated list of elements. Rows are separated by a semicolon. A = [1, 2, 3; 4, 5, 6] # A = # # 1 2 3 # 4 5 6 Sum of two matrices B = [1, 1, 1; 1, 1, 1] # B = # # 1 1 1 # 1 1 1 A+B # ans = # # 2 3 4 # ...
# Base image FROM python:2.7-alpine # Metadata MAINTAINER John Doe <[email protected]> # System-level dependencies RUN apk add --update \ ca-certificates \ && update-ca-certificates \ && rm -rf /var/cache/apk/* # App dependencies COPY requirements....
While the JavaScript tracking snippet described above ensures the script will be loaded and executed asynchronously on all browsers, it has the disadvantage of not allowing modern browsers to preload the script. The alternative async tracking snippet below adds support for preloading, which will pr...
Plugins are scripts that enhance the functionality of analytics.js to aid in measuring user interaction. Plugins are typically specific to a set of features that may not be required by all Google Analytics users, such as ecommerce or cross-domain tracking, and are therefore not included in analytics...
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...
So the GNU coreutils should be avaialable on all linux based systems (please correct me if I am wrong here). If you do not know what system you are using you may not be able to directly jump to one of the examples above, hence this may be your first port of call. `$ uname -a On my system this giv...
The simplest form of wait statement is simply: wait; Whenever a process executes this it is suspended forever. The simulation scheduler will never resume it again. Example: signal end_of_simulation: boolean := false; ... process begin clock <= '0'; wait for 500 ps; clock <= '1...
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 884 of 1336