Tutorial by Examples: c

Method 1: proc sql; create table foo like sashelp.class; quit; Method 2: proc sql; create table bar as select * from sashelp.class (obs=0); quit; Method 1 should be the preferred option
PROC SQL options; SELECT column(s) FROM table-name | view-name WHERE expression GROUP BY column(s) HAVING expression ORDER BYcolumn(s); QUIT; Example 1: proc sql; select name ,sex from sashelp.class ; quit; The SELECT statement is specified in this order : 1....
Importing the framework Swift import Contacts Objective-C #import <Contacts/Contacts.h> Checking accessibility Swift switch CNContactStore.authorizationStatusForEntityType(CNEntityType.Contacts){ case .Authorized: //access contacts case .Denied, .NotDetermined: //request permissio...
Applying a filter To access contacts, we should apply a filter of type NSPredicate to our contactStore variable which we defined it in Authorizing Contact Access example. For example, here we want to sort out contacts with name matching with our own: Swift let predicate = CNContact.predicateForCo...
Modern versions of Jenkins (version 2.x) come with a "Build Pipeline Plugin" that can be used to orchestrate complex CI tasks without creating a multitude of interconnected jobs, and allow you to easily version-control your build / test configuration. You may install this manually in a &q...
Here is an example of a pipeline script that builds a Docker container, then runs the tests inside of it. The entrypoint is assumed to be either manage.py or invoke/fabric with a runtests command available. #!/usr/bin/groovy node { stage 'Checkout' checkout scm sh 'git submodule update ...
To receive push notifications we are supposed to tell the plugin to listen to incoming push notifications. This step is done after initialization & registration import { Push, NotificationEventResponse} from "ionic-native"; //the push element is created in the initial...
just execute uname -a. On Arch: $ uname -a Linux nokia 4.6.4-1-ARCH #1 SMP PREEMPT Mon Jul 11 19:12:32 CEST 2016 x86_64 GNU/Linuxenter code here
The Maven Surefire plugin runs during the test phase of the Maven build process or when test is specified as a Maven goal. The following directory structure and minimum pom.xml file will configure Maven to run a test. Directory structure inside the project's root directory: ─ project_root ├─ p...
val allowedUsers = users.filter { it.age > MINIMUM_AGE }
This example will explore how to see the layout of a video track and how to extract the individual pictures within it. The sample content used here is Tears of Steel, by Blender Foundation. Specifically, we will use the download titled "HD 720p (~365MB, mov, 2.0)". This is a single file t...
Mongoose connect has 3 parameters, uri, options, and the callback function. To use them see sample below. var mongoose = require('mongoose'); var uri = 'mongodb://localhost:27017/DBNAME'; var options = { user: 'user1', pass: 'pass' } mongoose.connect(uri, options, function(err){...
I.Overview A significant difference between MongoDB & RDBMS is MongoDB has many kinds of operators. One of them is update operator, which is used in update statements. II.What happen if we don't use update operators? Suppose we have a student collection to store student information(Table view...
If you want to execute synchronous code asynchronous (for example CPU extensive calculations), you can use Task.Run(() => {}). public async Task DoStuffAsync() { await DoCpuBoundWorkAsync(); } private async Task DoCpuBoundWorkAsync() { await Task.Run(() => { fo...
The Task object is an object like any other if you take away the async-await keywords. Consider this example: public async Task DoStuffAsync() { await WaitAsync(); await WaitDirectlyAsync(); } private async Task WaitAsync() { await Task.Delay(1000); } private Task WaitDire...
You can use void (instead of Task) as a return type of an asynchronous method. This will result in a "fire-and-forget" action: public void DoStuff() { FireAndForgetAsync(); } private async void FireAndForgetAsync() { await Task.Delay(1000); throw new Exception(); ...
Log on to the Azure classic portal. In the left navigation pane of the portal, click Service Bus. In the lower pane of the portal, click Create. In the Add a new namespace dialog, enter a namespace name. The system immediately checks to see if the name is available. After...
Log on to the Azure classic portal. In the left navigation pane of the portal, click Service Bus. Select the namespace that you would like to create the queue in. In this case, it is “mytestns1.” Select Queues. Select New in the bottom left corner, then select Quick Creat...
Create a new console application and add a reference to the Service Bus NuGet package, similar to the sending application above. Add the following using statement to the top of the Program.cs file. using Microsoft.ServiceBus.Messaging; Add the following code to the Main method, set ...
@IBAction func axisChange(sender: UISwitch) { UIView.animateWithDuration(1.0) { self.updateConstraintsForAxis() } } The updateConstraintForAxis function just sets the axis of the stack view containing the two image views: private func updateConstraintsForAxis() { if (axi...

Page 504 of 826