Tutorial by Examples: e

NA is a logical type and a logical operator with an NA will return NA if the outcome is ambiguous. Below, NA OR TRUE evaluates to TRUE because at least one side evaluates to TRUE, however NA OR FALSE returns NA because we do not know whether NA would have been TRUE or FALSE NA | TRUE # [1] TRUE ...
int n = 0; while (n < 5) { Console.WriteLine(n); n++; } Output: 0 1 2 3 4 IEnumerators can be iterated with a while loop: // Call a custom method that takes a count, and returns an IEnumerator for a list // of strings with the names of theh largest city metro areas. ...
It is similar to a while loop, except that it tests the condition at the end of the loop body. The Do - While loop executes the loop once irrespective of whether the condition is true or not. int[] numbers = new int[] { 6, 7, 8, 10 }; // Sum values from the array until we get a total that's ...
// Print the multiplication table up to 5s for (int i = 1; i <= 5; i++) { for (int j = 1; j <= 5; j++) { int product = i * j; Console.WriteLine("{0} times {1} is {2}", i, j, product); } }
You can reload the current state using the $state.reload method from your controller $state.reload() This is a shorthand for (code taken from the official docs) $state.transitionTo($state.current, $stateParams, { reload: true, inherit: false, notify: false }); Running a reload on your ...
$state.go is shorthand method to $state.transitionTo $state.go(toState [, toParams] [, options]) This method automatically sets your options to { location: true, inherit: true, relative: $state.$current, notify: true } (unless you override them) and allows you to transition with less code. Ex...
Constants in Go may be typed or untyped. For instance, given the following string literal: "bar" one might say that the type of the literal is string, however, this is not semantically correct. Instead, literals are Untyped string constants. It is a string (more correctly, its default ...
If you have only just popped it and the terminal is still open, you will still have the hash value printed by git stash pop on screen: $ git stash pop [...] Dropped refs/stash@{0} (2ca03e22256be97f9e40f08e6d6773c7d41dbfd1) (Note that git stash drop also produces the same line.) Otherwise, you...
Microsoft Access is one of the Microsoft Office suite of programs. However, it is only available in some packages of MS Office. If you wish to obtain Access, please make sure to carefully examine the box or download specifications for each version of Microsoft Office. MS Access is only available fo...
Sometimes it makes sense to nest view's or routes within one another. For example on the dashboard you want several sub views, similar to tabs but implemented via the routing system, to show the users' projects, contacts, messages ets. In order to support such scenarios the router allows us to defin...
Analysis of Variance (aov) is used to determine if the means of two or more groups differ significantly from each other. Responses are assumed to be independent of each other, Normally distributed (within each group), and the within-group variances are assumed equal. In order to complete the analys...
In many cases, for instance when using web views in table view cells, it's important to determine the content size of the rendered HTML page. After loading the page, this can be calculated in the UIWebViewDelegate delegate method: - (void) webViewDidFinishLoad:(UIWebView *) aWebView { CGRect f...
[ alias ] ignored = ! git ls-files --others --ignored --exclude-standard --directory \ && git ls-files --others -i --exclude-standard Shows one line per file, so you can grep (only directories): $ git ignored | grep '/$' .yardoc/ doc/ Or count: ~$ git ignored | ...
Sometimes you may want maintain versions of a git repository on machines that have no network connection. Bundles allow you to package git objects and references in a repository on one machine and import those into a repository on another. git tag 2016_07_24 git bundle create changes_between_tags...
The year, month or day components of a DATE data type can be found using the EXTRACT( [ YEAR | MONTH | DAY ] FROM datevalue ) SELECT EXTRACT (YEAR FROM DATE '2016-07-25') AS YEAR, EXTRACT (MONTH FROM DATE '2016-07-25') AS MONTH, EXTRACT (DAY FROM DATE '2016-07-25') AS DAY FROM D...
Create new Jekyll Post To create a new Jekyll Post, create a new file on _posts directory with the format YYYY-MM-DD-title.MARKUP Replace MARKUP with the file extension for the language you want to use. This is usually Markdown(.md or .markdown) or HTML(.html). _posts/2017-01-01-hello-jekyll.m...
The Jekyll gem makes a jekyll executable available to you in your Terminal window. You can use this command in a number of ways: $ jekyll build # => The current folder will be generated into ./_site $ jekyll build --destination <destination> # => The current folder will be generate...
In some cases you might want to add an additional description to an enum value, for instance when the enum value itself is less readable than what you might want to display to the user. In such cases you can use the System.ComponentModel.DescriptionAttribute class. For example: public enum Possibl...
Installing Appcelerator Titanium At first we need to set up Titanium: command-line tools (CLI) to compile the apps the MVC framework Alloy the SDK The main parts are installed using the node.js package manager 'npm'. Check https://nodejs.org/ if you need to install it. Linux (Fedora) If y...
GitHub offers unlimited hosting for users or organizations and project site. Both Jekyll and static files are available. Here are the steps in hosting your Jekyll blog on Github. Setup Users or organizations site Create a repository named username.github.io, where username is your username (or...

Page 424 of 1191