Tutorial by Examples: al

println("Hello Scala.js") // In ES6: console.log("Hello Scala.js");
To install Marionette using NPM and Webpack Install NPM following the advice from the NPM blog Create a directory for your JavaScript application Inside that directory, run npm init, giving your application names Install Webpack: npm install --save webpack Install Marionette's dependencies: n...
Partial Update: Used when a partial document update is needed to be done, i.e. in the following example the field name of the document with id doc_id is going to be updated to 'John'. Note that if the field is missing, it will just be added to the document. doc = { "doc": { ...
Detailed instructions on getting graphite set up or installed.
Example of usage scalacheck with scalatest. Below we have four tests: "show pass example" - it passes "show simple example without custom error message " - just failed message without details, && boolean operator is used "show example with error messages on arg...
Zeromq has a huge number of bindings for different languages. To find the right binding and instructions how to use follow this. Also you can use: a pure C# implementation or Java implementation
To use multi-threading in MATLAB one can use the batch command. Note that you must have the Parallel Computing toolbox installed. For a time-consuming script, for example, for ii=1:1e8 A(ii)=sin(ii*2*pi/1e8); end to run it in batch mode one would use the following: job=batch("da&quot...
Detailed instructions on getting liquibase set up or installed.
Detailed instructions on getting angular-dart set up or installed.
Note: For brevity, the commands use here-strings (<<<) and ANSI C-quoted strings ($'...'). Both these shell features work in bash, ksh, and zsh. # GNU Sed $ sed ':a;$!{N;ba}; s/\n/\t/g' <<<$'line_1\nline_2\nline_3' line_1 line_2 line_3 # BSD Sed equivalent (multi-line form) ...
Note: For brevity, the commands use here-strings (<<<) and ANSI C-quoted strings ($'...'). Both these shell features work in bash, ksh, and zsh. # GNU Sed $ sed '1 a appended text' <<<'line 1' line 1 appended text # BSD Sed (multi-line form) sed '1 a\ appended text'...
This example explains the different methods to install Yarn for your OS. macOS Homebrew brew update brew install yarn MacPorts sudo port install yarn Adding Yarn to your PATH Add the following to your preferred shell profile (.profile, .bashrc, .zshrc etc) export PATH="$PATH:`yarn ...
Download and install the Unity Editor from the Unity Download page. Installing Unity using Download Assistant Unity Download Assistant is a small executable program which lets you select which components of the Unity Editor you want to download and install. If you’re not sure which components you...
Detailed instructions on getting visual-studio-cordova set up or installed.
Detailed instructions on getting webforms set up or installed.
The Symfony Installer is a command line tool that helps you to create new Symfony applications. It requires PHP 5.4 or higher. Downloading and installing the Symfony Installer on Linux / MacOS Open a terminal and execute the following commands: sudo mkdir -p /usr/local/bin sudo curl -LsS https:/...
Caching Online Images Using AlamofireImage. It works on top of Alamofire in Swift. Install AlamofireImage using cocoapods pod 'AlamofireImage', '~> 3.1' SetUp: Import AlamofireImage and Alamofire SetUp the Image cache: let imageCache = AutoPurgingImageCache( memoryCapacity: 111_111_111,...
Example for a functional view to create an object. Excluding comments and blank lines, we need 15 lines of code: # imports from django.shortcuts import render_to_response from django.http import HttpResponseRedirect from .models import SampleObject from .forms import SampleObjectForm # vie...
cx_Freeze - a tool can package your project to excutable/installer after install it by pip, to package demo.py, we need setup.py below. import sys from cx_Freeze import setup, Executable # Dependencies are automatically detected, but it might need fine tuning. build_exe_options = { &...
Occasionally it's useful to assign one or more ports manually vs using the defaults. Doing so can solve port availability/permissions issues or accommodate running more than one ember instance at a time. To have ember-cli attempt to identify and assign an available port, use: ember serve --port ...

Page 237 of 269