Tutorial by Examples

Since an enum can be cast to and from its underlying integral type, the value may fall outside the range of values given in the definition of the enum type. Although the below enum type DaysOfWeek only has 7 defined values, it can still hold any int value. public enum DaysOfWeek { Monday = 1...
From within Emacs, type C-h t (Control-h, t) to get an excellent interactive tutorial within Emacs. The user learns basic navigation and editing by operating on the TUTORIAL text itself, as they read the tutorial. (Modifications to the tutorial are discarded when the tutorial is closed, so each ti...
Validation attributes are used to enforce various validation rules in a declarative fashion on classes or class members. All validation attributes derive from the ValidationAttribute base class. Example: RequiredAttribute When validated through the ValidationAttribute.Validate method, this att...
// filename is a string with the full path // true is to append using (System.IO.StreamWriter file = new System.IO.StreamWriter(filename, true)) { // Can write either a string or char array await file.WriteAsync(text); }
Information about the database connections SELECT a.mon$attachment_id as Attachment_ID, a.mon$server_pid as Server_PID, case a.mon$state when 1 then 'active' when 0 then 'idle' end as State, a.mon$attachment_name as Database_Name, ...
public static void delete (String urlString, String contentType) throws IOException { HttpURLConnection connection = null; try { URL url = new URL(urlString); connection = (HttpURLConnection) url.openConnection(); connection.setDoInpu...
Overriding in Inheritance is used when you use a already defined method from a super class in a sub class, but in a different way than how the method was originally designed in the super class. Overriding allows the user to reuse code by using existing material and modifying it to suit the user's ne...

asm

The asm keyword takes a single operand, which must be a string literal. It has an implementation-defined meaning, but is typically passed to the implementation's assembler, with the assembler's output being incorporated into the translation unit. The asm statement is a definition, not an expression...
Darken #demo { @refcolor: #f0b9b8; background: @refcolor; border: 1px solid darken(@refcolor, 25%); } The above code makes use of the darken() function to set the border color as a shade that is 25% darker than the reference color (which is also the background color). Less compiler ca...
lessc [options] <source> [destination] The above command is used to compile Less files in the command line. Options are the various settings that the compiler should use either during compilation or after compilation. Options include -x or --compress for compressing or minifying the output ...
Loading the SharePoint Snapin can be done using the following: Add-PSSnapin "Microsoft.SharePoint.PowerShell" This only works in the 64bit version of PowerShell. If the window says "Windows PowerShell (x86)" in the title you are using the incorrect version. If the Snap-In is a...
Print out all list names and the item count. $site = Get-SPSite -Identity https://mysharepointsite/sites/test foreach ($web in $site.AllWebs) { foreach ($list in $web.Lists) { # Prints list title and item count Write-Output "$($list.Title), Items: $($list.ItemCoun...
Get-SPFeature -Site https://mysharepointsite/sites/test Get-SPFeature can also be run on web scope (-Web <WebUrl>), farm scope (-Farm) and web application scope (-WebApplication <WebAppUrl>). Get all orphaned features on a site collection Another usage of Get-SPFeature can be to find ...
internal func Init<Type>(value : Type, block: @noescape (object: Type) -> Void) -> Type { block(object: value) return value } Usage: Init(UILabel(frame: CGRect.zero)) { $0.backgroundColor = UIColor.blackColor() }
Website: https://desktop.github.com Price: free Platforms: OS X and Windows Developed by: GitHub
Website:https://www.gitkraken.com Price: $60/years (free for For open source, education, non‑profit, startups or personal use) Platforms: Linux, OS X, Windows Developed by: Axosoft
Website: https://www.sourcetreeapp.com Price: free (account is necessary) Platforms: OS X and Windows Developer: Atlassian
When deriving Serialize and Deserialize implementations for structs with generic type parameters, most of the time Serde is able to infer the correct trait bounds without help from the programmer. It uses several heuristics to guess the right bound, but most importantly it puts a bound of T: Seriali...
Suppose that you had started an interactive rebase: git rebase --interactive HEAD~20 and by mistake, you squashed or dropped some commits that you didn't want to lose, but then completed the rebase. To recover, do git reflog, and you might see some output like this: aaaaaaa HEAD@{0} rebase -i (...
Those that are using TortioseGit UI click Right Mouse on the file (or folder) you want to ignore -> TortoiseGit -> Delete and add to ignore list, here you can choose to ignore all files of that type or this specific file -> dialog will pop out Click Ok and you should be done.

Page 709 of 1336