Tutorial by Examples: sin

Goal: <FruitBasket xmlns="http://www.fruitauthority.fake"> <Fruit> <FruitName>Banana</FruitName> <FruitColor>Yellow</FruitColor> </Fruit> <Fruit> <FruitName>Apple</FruitName> <FruitColor>Red<...
Like most of the other programming languages, T-SQL also supports IF..ELSE statements. For example in the example below 1 = 1 is the expression, which evaluates to True and the control enters the BEGIN..END block and the Print statement prints the string 'One is equal to One' IF ( 1 = 1) --<-...
In a single IF..ELSE statement, if the expression evaluates to True in the IF statement the control enters the first BEGIN..END block and only the code inside that block gets executed , Else block is simply ignored. On the other hand if the expression evaluates to False the ELSE BEGIN..END block ge...
You can apply formats within a procedure, e.g. to change the groupings within a proc summary or proc freq. Grouping SAS dates data example2 ; do Date = '01JUN2016'dt to '31AUG2016'dt ; Days = 1 ; output ; end ; run ; /* Summarise by year & month */ proc summary data=exampl...
Download the latest version of ANTLR and extract it to a folder. You can use also Maven, Gradle, or other build tool to depend on its runtime (the classes the generated grammars use): org.antlr:antlr4-runtime. In order to automatically -as part of the build process- generate the parser in a maven ...
Since a Vimscript file is a collection of Command mode actions, the user needs to specify that the desired actions should be executed in normal mode. Therefore executing a normal mode command like i, a, d etc. in Vimscript is done by prepending the command with normal: Going to the bottom of the f...
First, make sure your app can be backed up in AndroidManifest.xml, i.e. android:allowBackup is not false. Backup command: adb -s <device_id> backup -noapk <sample.package.id> Create a tar with dd command: dd if=backup.ab bs=1 skip=24 | python -c "import zlib,sys;sys.stdout.wri...
Given the text file employee.txt 1|Arthur Dent 2|Marvin 3|Zaphod Beeblebrox $ mysqlimport --fields-terminated-by='|' mycompany employee.txt
This example is useful for windows-like endings: $ mysqlimport --lines-terminated-by='\r\n' mycompany employee.txt
An easing causes some variable to change unevenly over a duration. "variable" must be able to be expressed as a number, and can represent a remarkable variety of things: an X-coordinate, a rectangle's width, an angle of rotation, the red component of an R,G,B color. anything that c...
The following snippet replaces all Attributes called PreviousAttribute by an Attribute called ReplacementAttribute for an entire solution. The sample manually searches the Syntax tree and replaces all affected nodes. static async Task<bool> ModifySolution(string solutionPath) { ...
The following snippet replaces all Attributes called "PreviousAttribute" by an Attribute called "ReplacementAttribute" for an entire solution. The sample manually uses a SyntaxRewriter to exchange the attributes. /// <summary> /// The CSharpSyntaxRewriter allows to rewrit...
page.xml <Page xmlns="http://schemas.nativescript.org/tns.xsd" navigatingTo="navigatingTo"> <Repeater items="{{ myItems }}"> <Repeater.itemTemplate> <Label text="{{ title || 'Downloading...' }}" textWrap="true&quot...
page.xml <Page xmlns="http://schemas.nativescript.org/tns.xsd" navigatingTo="navigatingTo"> <Repeater items="{{ myItems }}"> <Repeater.itemTemplate> <Label text="{{ title || 'Downloading...' }}" textWrap="true&quot...
page.xml <Page xmlns="http://schemas.nativescript.org/tns.xsd" navigatingTo="navigatingTo"> <ListView items="{{ myItems }}" itemTap="listViewItemTap"> <ListView.itemTemplate> <Label text="{{ title || 'Downloading.....
creating-listview.component.html <ListView [items]="countries" (itemTap)="onItemTap($event)"> <template let-country="item" let-i="index"> <StackLayout orientation="horizontal"> <Label [text]='(i + 1) +...
ngfor.component.html <StackLayout> <Label *ngFor="let item of items" [text]="item"></Label> </StackLayout> ngfor.component.ts import { Component } from "@angular/core"; var dataItems = ["data-item 1", "data-item 2&quo...
Examples of using functions with hotkeys: Hotkey, a, MyFunction ; Calls MyFunction() when a is pressed MyFunction() { MsgBox You pressed %A_ThisHotkey%. } Or: a::MyFunction() MyFunction() { MsgBox You pressed %A_ThisHotkey%. }
This script demonstrates how to receive complicated GUI events from different controls in the same event callback function. We'll be using two ListView controls for that. Now every time an action is detected on one of those ListView controls, we want a precise description of what happened and have ...
<?xml version="1.0" encoding="utf-8"?> <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"&g...

Page 87 of 161