Tutorial by Examples

Variables are used to store a value once which will be used multiple times throughout a Sass document. They are mostly used for controlling things such as fonts and colors but can be used for any value of any property. Sass uses the $ symbol to make something a variable. $font-stack: Helvetica, s...
Just as in Sass, SCSS variables are used to store a value which will be used multiple times throughout a SCSS document. Variables are mostly used to store frequently-used property values (such as fonts and colors), but can be used for any value of any property. SCSS uses the $ symbol to declare a ...
Fourier Transform is probably the first lesson in Digital Signal Processing, it's application is everywhere and it is a powerful tool when it comes to analyze data (in all sectors) or signals. Matlab has a set of powerful toolboxes for Fourier Transform. In this example, we will use Fourier Transfor...
If you set opacity on an element it will affect all its child elements. To set an opacity just on the background of an element you will have to use RGBA colors. Following example will have a black background with 0.6 opacity. /* Fallback for web browsers that don't support RGBa */ background-color...
Objective-C [mySwitch setOn:YES]; //or [mySwitch setOn:YES animated:YES]; Swift mySwitch.setOn(false) //or mySwitch.setOn(false, animated: false)
Objective-C mySwitch.backgroundColor = [UIColor yellowColor]; [mySwitch setBackgroundColor: [UIColor yellowColor]]; mySwitch.backgroundColor =[UIColor colorWithRed:255/255.0 green:0/255.0 blue:0/255.0 alpha:1.0]; mySwitch.backgroundColor= [UIColor colorWithWhite: 0.5 alpha: 1.0]; mySwitch.backg...
Objective-C //for off-state mySwitch.tintColor = [UIColor blueColor]; [mySwitch setTintColor: [UIColor blueColor]]; //for on-state mySwitch.onTintColor = [UIColor cyanColor]; [mySwitch setOnTintColor: [UIColor cyanColor]]; Swift //for off-state mySwitch.tintColor = UIColor.blueColor() ...
If your project depends on the external libraries, you should first install them with opam. Assuming your dependencies are foo and bar and the main entry point of your project is foobar.ml you can then build a bytecode executable with ocamlbuild -use-ocamlfind -pkgs 'foo,bar' foobar.byte Warnin...
If your project has no external dependency and has foo.ml as its main entry point, you can compile a bytecode version with ocamlbuild foo.byte To get a native executable, run ocamlbuild foo.native
import pandas as pd import numpy as np df = pd.DataFrame({'A':[1,2,np.nan,3,np.nan], 'B':[1.2,7,3,0,8]}) df['C'] = df.A.interpolate() df['D'] = df.A.interpolate(method='spline', order=1) print (df) A B C D 0 1.0 1.2 1.0 1.000000 1 2.0 7.0 2...
order allow,deny deny from 255.0.0.0 allow from all This denies access to the IP 255.0.0.0. order allow,deny deny from 123.45.6. allow from all This denies access to all IPs in the range 123.45.6.0 to 123.45.6.255.
Fortran 2003 introduced language features which can guarantee interoperability between C and Fortran (and to more languages by using C as an intermediary). These features are mostly accessed through the intrinsic module iso_c_binding: use, intrinsic :: iso_c_binding The intrinsic keyword here en...
The bind attribute can also be applied to derived types: geese.h struct Goose { int flock; float buoyancy; } struct Goose goose_c; geese.f90 use, intrinsic :: iso_c_binding, only : c_int, c_float type, bind(C) :: goose_t integer(c_int) :: flock real(c_float) :: buoyancy e...
For annotating some point of interest on map, we use pin annotation. Now, start by creating annotation object first. MKPointAnnotation *pointAnnotation = [[MKPointAnnotation alloc] init]; Now provide coordinate to pointAnnotation,as CLLocationCoordinate2D coordinate = CLLocationCoordinate2DMake...
In attempt to send a response asynchronously from chrome.runtime.onMessage callback we might try this wrong code: chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) { $.ajax({ url: 'https://www.google.com', method: 'GET', success: functio...
Homebrew You can install Node.js using the Homebrew package manager. Start by updating brew: brew update You may need to change permissions or paths. It's best to run this before proceeding: brew doctor Next you can install Node.js by running: brew install node Once Node.js is installe...
Detailed instructions on getting laravel set up or installed. composer is required for installing laravel easily. There are 3 methods of installing laravel in your system: Via Laravel Installer Download the Laravel installer using composer composer global require "laravel/installer&quo...
Detailed instructions on getting hdfs set up or installed.
Transforms hold the majority of data about an object in unity, including it's parent(s), child(s), position, rotation, and scale. It also has functions to modify each of these properties. Every GameObject has a Transform. Translating (moving) an object // Move an object 10 units in the positive ...
Encoding //Create a Base64 Encoded NSString Object NSData *nsdata = [@"iOS Developer Tips encoded in Base64" dataUsingEncoding:NSUTF8StringEncoding]; // Get NSString from NSData object in Base64 NSString *base64Encoded = [nsdata base64EncodedStringWithOptions:0]; // Print the B...

Page 269 of 1336