Tutorial by Examples: a

Convert from wide form to long form Load data USArrests from datasets. data("USArrests") head(USArrests) Murder Assault UrbanPop Rape Alabama 13.2 236 58 21.2 Alaska 10.0 263 48 44.5 Arizona 8.1 294 80 31.0 Arkansas 8...
Convert from long form to wide form To recover data from the previous example, use dcast like so. DTc <- dcast(DTmu, State + UrbanPop ~ Crime) This gives the data in the original wide form. State UrbanPop Murder Assault Rape 1: Alabama 58 13.2 236 21.2 2:...
Here is a basic class documentation example: /// Class description class Student { // Member description var name: String /// Method description /// /// - parameter content: parameter description /// /// - returns: return value description func say...
SAML specifies three key roles: The Identity Provider (IdP) The party which provides and maintains the identity of the users. This can be a directory service like ADFS or a custom database solution. The Service Provider (SP) The Service Provider is the actual service which the user tries...
With all the requests and assertions going back and forth, it can be cumbersome to debug issues with your SAML claims and assertions. As within SAML a core principle is not needing a direct connection between the IdP and the SP, the user's browser acts as a message carrier between the two. Because ...
@at-root directive can be used to localize variables. $color: blue; @at-root { $color: red; .a { color: $color; } .b { color: $color; } } .c { color: $color; } is compiled to: .a { color: red; } .b { color: red; } .c { color: blue; }
Define the variables within a formula field: Shared NumberVar x := 1000; Shared NumberVar y; Assigning the values is optional. To display the variable in a second formula later on in the report, the call is nearly identical: Shared NumberVar x; x
In many application it is necessary to compute the function of two or more arguments. Traditionally, we use for-loops. For example, if we need to calculate the f = exp(-x^2-y^2) (do not use this if you need fast simulations): % code1 x = -1.2:0.2:1.4; y = -2:0.25:3; for nx=1:lenght(x) for n...
Custom matchers can be added in jasmine using the syntax: jasmine.addMatchers([ toMatch: function () { return { compare: function (actual, expected) { return { pass: actual===expected, message: "Expected actual to match expected...
How to interact with the BIOS The Basic Input/Output System, or BIOS, is what controls the computer before any operating system runs. To access services provided by the BIOS, assembly code uses interrupts. An interrupt takes the form of int <interrupt> ; interrupt must be a literal number, n...
Old UI system tool, now used for fast and simple prototyping or debugging in game. void OnGUI () { GUILayout.Label ("I'm a simple label text displayed in game."); if ( GUILayout.Button("CLICK ME") ) { GUILayout.TextArea ("This is a \n ...
Custom matchers will have their pass value negated when using 'not'. Custom matchers can have a negative compare attribute to explicitly handle cases where their negation is desired: toMatch: function () { return { compare: function (actual, expected) { return...
Time complexity is a property of Problems someone might want to solve computationally, Algorithms designed to solve such problems and Programs implementing such algorithms. An abstract concept requires no installation or setup. Simply take any problem, algorithm, or code and ask "How lo...
This uses the Dropbox Java SDK to download a file from the Dropbox API at the remote path /Homework/math/Prime_Numbers.txt to the local file Prime_Numbers.txt: String localPath = "Prime_Numbers.txt"; OutputStream outputStream = new FileOutputStream(localPath); FileMetadata metadata = cl...
Many real-world database tables have many rows with DATETIME OR TIMESTAMP column values spanning a lot of time, including years or even decades. Often it's necessary to use a WHERE clause to retrieve some subset of that timespan. For example, we might want to retrieve rows for the date 1-September-2...
image: jangrewe/gitlab-ci-android before_script: - apt-get --quiet update --yes - apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1 openjdk-8-jdk - echo y | ${ANDROID_HOME}/tools/android --silent update sdk --no-ui --all --filter android-24 - echo y | ${ANDROID_HOME}/too...
There is a dozen implementations of Standard ML. MLton produces very optimized code, but has no REPL. SML/NJ is the most widely used, but has slightly difficult error messages for learning purposes. Moscow ML and Poly/ML are easy to get started with, but don't support the .mlb package format. That i...
// Basic code for Express Instance var express = require('express'); var app = express(); // Serve static files from directory 'public' app.use(express.static('public')); // Start Express server app.listen(3030);
// Set up Express var express = require('express'); var app = express(); // Serve static assets from both 'public' and 'files' directory app.use(express.static('public'); app.use(express.static('files'); // Start Express server app.listen(3030);
// Set up Express var express = require('express'); var app = express(); // Specify mount path, '/static', for the static directory app.use('/static', express.static('public')); // Start Express server app.listen(3030);

Page 766 of 1099