Tutorial by Examples

<div ng-repeat="(key, value) in myObj"> ... </div> For example <div ng-repeat="n in [42, 42, 43, 43]"> {{n}} </div>
ngRepeat uses $watchCollection to detect changes in the collection. When a change happens, ngRepeat then makes the corresponding changes to the DOM: When an item is added, a new instance of the template is added to the DOM. When an item is removed, its template instance is removed from the DOM...
This extension adds a game named snake in the VSTS, which users can play while waiting for the long running build for example. Snake
We now illustrate the functions dbinom,pbinom,qbinom and rbinom defined for Binomial distribution. The dbinom() function gives the probabilities for various values of the binomial variable. Minimally it requires three arguments. The first argument for this function must be a vector of quantiles(the...
Donald Knuth is often quoted as saying this: "Programmers waste enormous amounts of time thinking about, or worrying about, the speed of noncritical parts of their programs, and these attempts at efficiency actually have a strong negative impact when debugging and maintenance are considered....
Example Feature file: Feature: Calculator In order to avoid silly mistakes As a math idiot I want to be told the sum of two numbers @mytag Scenario: Add two numbers Given I have entered 50 into the calculator And I have also entered 70 into the calculator When I press ad...
public class GoogleMailTest { GoogleMailTest() { } public static void Send(final String username, final String password, String recipientEmail, String title, String message) throws AddressException, MessagingException { GoogleMailTest.Send(username, password, recipientE...
You can use the same Example above Send Simple Mail with a little modification. Use msg.setContent() instead of msg.setText() and use content type html as text/html. check this msg.setContent(message, "text/html; charset=utf-8"); instead of msg.setText(message);
The DeriveFunctor language extension allows GHC to generate instances of Functor automatically. {-# LANGUAGE DeriveFunctor #-} data List a = Nil | Cons a (List a) deriving Functor -- instance Functor List where -- automatically defined -- fmap f Nil = Nil -- fmap f (Cons x xs...
Since Ruby 2.0, Ruby allows to have safer Monkey Patching with refinements. Basically it allows to limit the Monkey Patched code to only apply when it is requested. First we create a refinement in a module: module RefiningString refine String do def reverse "Hell riders" ...
The embed tag is new in HTML5. This element provides an integration point for an external (typically non-HTML) application or interactive content. <embed src="myflash.swf">
The MIME type must be defined using the type attribute. <embed type="video/mp4" src="video.mp4" width="640" height="480">
Installing Progress Download your distribution from Progress. If you want a demo license you need to contact them. Make sure you download a 64-bit and not a 32-bit tar file (unless you happen to run a 32-bit machine). Windows The download will be a zip archive. Unpack it and simply run setup.exe....
Read a 16-bit unsigned integer from input. This function uses the interrupt service Int 21/AH=0Ah for reading a buffered string. The use of a buffered string let the user review what they had typed before passing it to the program for processing. Up to six digits are read (as 65535 = 216 - 1 has ...
@Component({ ... animations: [ trigger('appear', [ transition(':enter', [ style({ //style applied at the start of animation }), animate('300ms ease-in', style({ ...
Go to the repository you want to create issue for, something like: https://bitbucket.org//<repo_name>/ Go to setting, left bottom corner Select Issue tracker under Issues Select the type of the issue tracker you want to enable (no issue tracking, private or public) Click save Now the ...
Once you've started your Progress editor of choice (there are a couple of options) simply write: DISPLAY "Hello, World!". And run by pressing the corresponding key or menu item: On Windows in AppBuilder: F1 (Compile -> Run) On Linux/Unix in the 4GL editor: F2 (or ctrl+X) (Compile ...
Another example of "Hello World" style programs is FizzBuzz. DEFINE VARIABLE i AS INTEGER NO-UNDO. DEFINE VARIABLE cOut AS CHARACTER NO-UNDO. DO i = 1 TO 100: /* Dividable by 3: fizz */ IF i MODULO 3 = 0 THEN cOut = "Fizz". /* Dividable by 5: ...
Go to the repository, e.g.: https://bitbucket.org/username/repo_name/ On the left menu, choose commits Select the commit you want to add comments to On the selected files related to that commit, click on the small + sign appearing near the line numbers A small window will appear to enter the ...
Channel adapter is one of message endpoints in Spring Integration. It is used for unidirectional message flow. There are two types of channel adapter: Inbound Adapter: input side of the channel. Listen or actively read message. Outbound Adapter: output side of the channel. Send message to Java cla...

Page 1051 of 1336