Tutorial by Examples: l

A button can be disabled by Swift myButton.isEnabled = false Objective-C: myButton.enabled = NO; The button will become gray: If you don't want the button appearance to change when disabled set adjustsImageWhenDisabled to false / NO
Swift label.backgroundColor = UIColor.redColor() label.backgroundColor = .redColor() Swift 3 label.backgroundColor = UIColor.red Objective-C label.backgroundColor = [UIColor redColor];
Often we want to operate only on elements of an array that fulfill a specific condition: Select Will return elements that match a specific condition array = [1, 2, 3, 4, 5, 6] array.select { |number| number > 3 } # => [4, 5, 6] Reject Will return elements that do not match a specific c...
manifest.json gives information about the extension, such as the most important files and the capabilities that the extension might use. Among the supported manifest fields for extensions, the following three are required. { "manifest_version": 2, "name": "My Exte...
Introduction SharePoint 2016 is the version 16 release of the SharePoint product family. It was released on May 4, 2016. This example covers the installation of SharePoint 2016 using the Single Server Farm configuration. This configuration covers the basics of setting up a SharePoint farm without t...
Create a new file named hello_world.dart with the following content: void main() { print('Hello, World!'); } In the terminal, navigate to the directory containing the file hello_world.dart and type the following: dart hello_world.dart Hit enter to display Hello, World! in the terminal wi...
Detailed instructions on getting ironpython set up or installed. Install IronPython Just download the newest version from http://ironpython.net and follow the instructions from the msi package. This package will setup everything you need to start working with ironpython.
#include <stdlib.h> #include <lauxlib.h> #include <lua.h> #include <lualib.h> int main(void) { lua_State *lvm_hnd = lua_open(); luaL_openlibs(lvm_hnd); /* Load a standard Lua function from global table: */ lua_getglobal(lvm_hnd, "print&quot...
CommandDescription<Esc>Leaves insert mode, triggers autocommands and abbreviations<C-[>Exact synonymous of <Esc><C-c>Leaves insert mode, doesn't trigger autocommands Some people like to use a relatively uncommon pair of characters like jk as shortcut for <Esc> or <C...
As mentioned in Basics, we can use anything which implements IntoIterator with the for loop: let vector = vec!["foo", "bar", "baz"]; // vectors implement IntoIterator for val in vector { println!("{}", val); } Expected output: foo bar baz ...
There are many ways you can create a UIColor: Swift Using one of the predefined colors: let redColor = UIColor.redColor() let blueColor: UIColor = .blueColor() // In Swift 3, the "Color()" suffix is removed: let redColor = UIColor.red let blueColor: UIColor = .blue If the c...
5 <input type="color" name="favcolor" value="#ff0000"> In supporting browsers, the input element with a type attribute whose value is color creates a button-like control, with a color equal to the value of color attribute (defaults to black if value is not spe...
Detailed instructions on getting access-vba set up or installed.
Requirements The following setup guide is for cakephp 2.8 and above. All cakephp versions lower than 2.8 are not compatible with php 7 HTTP Server. For example: Apache. Having mod_rewrite is preferred, but by no means required. PHP 5.5.9 or greater (including PHP 7). mbstring PHP extension in...
To create and manage Heroku apps locally you'll need the Heroku Toolbelt, here are some ways to get it. Download Download the Heroku Toolbelt installer from Heroku's website. Homebrew Install heroku with brew: brew install heroku Debian/Ubuntu Run this script: wget -O- https://toolbelt.her...

Url

5 <input type="url" name="Homepage"> This is used for input fields that should contain a URL address. Depending on browser support, the url field can be automatically validated when submitted. Some smartphones recognize the url type, and adds ".com" to the k...
The public keyword makes a class (including nested classes), property, method or field available to every consumer: public class Foo() { public string SomeProperty { get; set; } public class Baz { public int Value { get; set; } } } public class Bar() { publ...
File f = new File(path); String content = new Scanner(f).useDelimiter("\\Z").next(); \Z is the EOF (End of File) Symbol. When set as delimiter the Scanner will read the fill until the EOF Flag is reached.
Active patterns are a special type of pattern matching where you can specify named categories that your data may fall into, and then use those categories in match statements. To define an active pattern that classifies numbers as positive, negative or zero: let (|Positive|Negative|Zero|) num = ...
The HTML 4.01 specification provides several different types of doctypes that allow different types of elements to be specified within the document. HTML 4.01 Strict <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> Includes all...

Page 75 of 861