Tutorial by Examples

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 ...
When a new documentation tag is created, StackOverflow automatically generates an introductory topic, acting as a placeholder for the first actual topic. The introductory topic contains placeholder texts and pointers to point contributors in the right directions for helping expanding on the new doc...
Nginx configuration to detect request from mobile user-agent and redirect them to mobile site. location / { #mobile site handling as per user agent set $mobile_rewrite do_not_perform; // variable to store action. default set to not perform redirection to mobile site. if ($htt...
@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
Ucto is a rule-based tokeniser for multiple languages. It does sentence boundary detection as well. Although it is written in C++, there is a Python binding python-ucto to interface with it. import ucto #Set a file to use as tokeniser rules, this one is for English, other languages are availabl...
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...
Traditionally, you can use routing to map an the request with the Routing Component who handled request and response parameters by HttpFoundation Component. Additionally, a custom route parameter can be created by using the FOSRestBundle to extends the default functionalities of the Routing Compone...
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...
Protractor can selectively run groups of tests using fdescribe() instead of describe(). fdescribe('first group',()=>{ it('only this test will run',()=>{ //code that will run }); }); describe('second group',()=>{ it('this code will not run',()=>{ //code...
Protractor allows tests to be set as pending. This means that protractor will not execute the test, but will instead output: Pending: 1) Test Name Temporarily disabled with xit Or, if disabled with xdescribe(): Pending: 1) Test Name No reason given Combinations A xit() within an xdesc...
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 ...
A TypeScript function can take in parameters of multiple, predefined types using union types. function whatTime(hour:number|string, minute:number|string):string{ return hour+':'+minute; } whatTime(1,30) //'1:30' whatTime('1',30) //'1:30' whatTime(1,'30') //'1:30' wha...
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...

Page 939 of 1336