Tutorial by Examples: e

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.
If we have a Model as following, from django.db import models from django.contrib.auth.models import User class UserModuleProfile(models.Model): user = models.OneToOneField(User) expired = models.DateTimeField() admin = models.BooleanField(default=False) employee_id = models...
The Just-In-Time (JIT) compiler is a component of the Java™ Runtime Environment that improves the performance of Java applications at run time. Java programs consists of classes, which contain platform-neutral bytecodes that can be interpreted by a JVM on many different computer architectures...
To view an browse Vaadin add-ons in the Directory, you must be registered to vaadin.com. After the initial discovery of artifact details, e.g. for download and usage, registration is not required. Also, the usage of add-ons in a Maven project is not IDE-specific and the same instructions apply. Fro...
Partial classes provide a clean way to separate core logic of your scripts from platform specific methods. Partial classes and methods are marked with the keyword partial. This signals the compiler to leave the class "open" and look in other files for the rest of the implementation. // E...
CoffeeScript provides a basic class structure that allows you to name your class, set the superclass, assign prototypal properties, and define the constructor, in a single assignable expression. Small example below: class Animal constructor: (@name) -> move: (meters) -> alert @n...
If you feel the need to extend an object's prototype, :: gives you quick access to an it so you can add methods to it and later use this method on all instances of that method. String::dasherize = -> this.replace /_/g, "-" The above example will give you the ability to use the da...
The & operator is the parent selector. When used in or as a selector, it is replaced with the full parent selectors (entire sequence of selectors right upto to the topmost level of a nested block) in the final CSS output. It is useful when creating nested rules that require using the parent sel...
Less allows the usage of the parent selector (&) anywhere in a complex selector and thus allows changing styles when the current element is within another element which gives it a different context: For example, in the below code the parent selector is placed at the end and thus it actually be...
In Less you can write much more simple CSS rules and also keep them well formatted, so instead of writing this code: CSS .item { border: 1px solid; padding: 4px; } .item .content, .item .image { float: left; } .item .content { font-size: 12px; } .item .image { width: 300px; }...

Page 627 of 1191