Tutorial by Examples

The Z80 has a specific instruction to implement loop counts: DJNZstanding for "decrement B register and jump if not zero". So, B is the register of choice to implement loops on this processor. FOR...NEXT needs to be implemented "backwards", because the register counts down to zer...
Normally the jvm's garbage collection (gc) is transparent to the user (developer/engineer). GC tuning is normally not required unless the user faces a memory leak or has an application that requires large amount of memory - both of which eventually lead to an out-of-memory exception which compels t...
SampleViewModel.vb 'Import classes related to WPF for simplicity Imports System.Collections.ObjectModel Imports System.ComponentModel Public Class SampleViewModel Inherits DependencyObject 'A class acting as a ViewModel must inherit from DependencyObject 'A simple string p...
self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"Background.png"]];
1- Define Your own custom Block typedef void(^myCustomCompletion)(BOOL); 2- Create custom method which takes your custom completion block as a parameter. -(void) customMethodName:(myCustomCompletion) compblock{ //do stuff // check if completion block exist; if we do not check it will ...
BOOL Apple's Objective-C frameworks and most Objective-C/Cocoa code uses BOOL. Use BOOL in objective-C, when dealing with any CoreFoundation APIs Boolean Boolean is an old Carbon keyword , defined as an unsigned char
The sync() method reads and fetched the model data Backbone.sync = function(method, model) { document.write("The state of the model is:"); document.write("<br>"); //The 'method' specifies state of the model document.write(method +...
Flags gulp has very few flags to know about. All other flags are for tasks to use if needed. -v or --version will display the global and local gulp versions --require <module path> will require a module before running the gulpfile. This is useful for transpilers but also has other applica...
Resource loading in Java comprises the following steps: Finding the Class or ClassLoader that will find the resource. Finding the resource. Obtaining the byte stream for the resource. Reading and processing the byte stream. Closing the byte stream. The last three steps are typically accomp...
React components that are pure functions of their props and do not require any internal state can be written as JavaScript functions instead of using the standard class syntax, as: import React from 'react' const HelloWorld = (props) => ( <h1>Hello, {props.name}!</h1> ); ...
To use typescript with react in a node project, you must first have a project directory initialized with npm. To initialize the directory with npm init Installing via npm or yarn You can install React using npm by doing the following: npm install --save react react-dom Facebook released its ow...
The simplest react component without a state and no properties can be written as: import * as React from 'react'; const Greeter = () => <span>Hello, World!</span> That component, however, can't access this.props since typescript can't tell if it is a react component. To access ...
VueJS can be used to easily handle user input as well, and the two way binding using v-model makes it really easy to change data easily. HTML : <script src="https://unpkg.com/vue/dist/vue.js"></script> <div id="app"> {{message}} <input v-model="...
In case you have json with an ISO date string like this JSON.stringify({date: new Date()}) // -> "{"date":"2016-12-12T13:24:34.470Z"}" You can map it to elm Date type: import Html exposing (text) import Json.Decode as JD import Date payload = ""&...
Campaign Monitor built a nifty tool that generates code for buttons in HTML email. It uses a cominbation os CSS and VML (for Microsoft Outlook) to display background images or patterns in most major email clients. <div><!--[if mso]> <v:roundrect xmlns:v="urn:schemas-microsoft...
This technique relies on padding at the table cell level to structure the button, and both HTML attributes and CSS to style the button. No VML means simpler code, but no background images in Outlook. <table width="100%" border="0" cellspacing="0" cellpadding="0...
This technique relies on adding thick borders to the link itself to build the button's CTA. Using borders is universally understood by email clients, but limit button appearance solid colors. <table width="100%" border="0" cellspacing="0" cellpadding="0"&g...
This technique uses a combination of border-based and padding-based buttons, styling the link with both padding and at least a solid 1px border. The background color needs to be applied to the instead of the in this instance because Outlook does recognize horizontal padding on the tag (since it's...
This button derives from this example by Email on Acid. It is entirely code-based, so it will display without images downloaded, and the entire button is hoverable + clickable. Additionally, this example also includes spacers to help control how much vertical space appears before and after the butt...
SELECT 1 NUM_COLUMN, 'foo' VARCHAR2_COLUMN from DUAL UNION ALL SELECT NULL, NULL from DUAL; NUM_COLUMNVARCHAR2_COLUMN1foo(null)(null)

Page 1056 of 1336