Tutorial by Examples

By default, pandoc will use a Chicago author-date format for citations and references. To use another style, you will need to specify a CSL 1.0 style file in the csl metadata field. In the following a often used citation style, the elsevier style, is presented (download at https://github.com/citatio...
app.module.ts Add these into your app.module.ts file to use reactive forms import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { AppComponent } from './app.comp...
Unary operators can be defined by prepending the operator with unary_. Unary operators are limited to unary_+, unary_-, unary_! and unary_~: class Matrix(rows: Int, cols: Int, val data: Seq[Seq[Int]]){ def +(that: Matrix) = { val newData = for (r <- 0 until rows) yield for (c <...
Detailed instructions on getting swig set up or installed.
scan is used for calling function multiple times over a list of values, the function may contain state. scan syntax (as of theano 0.9): scan( fn, sequences=None, outputs_info=None, non_sequences=None, n_steps=None, truncate_gradient=-1, go_backwards=False, m...
theano.map and theano.scan_module.reduce are wrappers of theano_scan. They can be seen as handicapped version of scan. You can view Basic scan usage section for reference. import theano import theano.tensor as T s_x = T.ivector() s_sqr, _ = theano.map( fn = lambda x:x*x, sequences = [s...
As of theano 0.9, while loops can be done via theano.scan_module.scan_utils.until. To use, you should return until object in fn of scan. In the following example, we build a function that checks whether a complex number is inside Mandelbrot set. A complex number z_0 is inside mandelbrot set if ser...
Unlike gets.chomp this will not wait for a newline. First part of the stdlib must be included require 'io/console' Then a helper method can be written: def get_char input = STDIN.getch control_c_code = "\u0003" exit(1) if input == control_c_code input end Its' imporan...
The WMI Framework Windows Management Instrumentation (WMI) is included in all modern versions of Windows and Windows Server. Windows Management Instrumentation (WMI) CORE 1.5 was once available from Microsoft to install WMI on computers running Windows 95/98 or Windows NT 4.0. Even though all Wind...
This example will list the preferred resolution for all the connected monitors. The Code: On Error Resume Next strComputer = "." strQuery = "SELECT PreferredMonitorSourceModeIndex, MonitorSourceModes " & _ "FROM WmiMonitorListedSupportedSourceModes" ...
location = /favicon.ico { log_not_found off; access_log off; } location = /robots.txt { allow all; log_not_found off; access_log off; }
Strings can be compared with the == operator in Julia, but this is sensitive to differences in case. For instance, "Hello" and "hello" are considered different strings. julia> "Hello" == "Hello" true julia> "Hello" == "hello" fa...
Sometimes, one wants strings like "resume" and "résumé" to compare equal. That is, graphemes that share a basic glyph, but possibly differ because of additions to those basic glyphs. Such comparison can be accomplished by stripping diacritical marks. equals_ignore_mark(s, t) =...
There are three equality operators: ==, ===, and isequal. (The last is not really an operator, but it is a function and all operators are functions.) When to use == == is value equality. It returns true when two objects represent, in their present state, the same value. For instance, it is obviou...
Vectors are one-dimensional arrays, and support mostly the same interface as their multi-dimensional counterparts. However, vectors also support additional operations. First, note that Vector{T} where T is some type means the same as Array{T,1}. julia> Vector{Int} Array{Int64,1} julia> V...
Strings can be made from functions that work with IO objects by using the sprint function. For instance, the code_llvm function accepts an IO object as the first argument. Typically, it is used like julia> code_llvm(STDOUT, *, (Int, Int)) define i64 @"jlsys_*_46115"(i64, i64) #0 { ...
Let me write a piece of code which shows completely loosely coupled, Then you can easily understand how Spring core manage the dependency internally. Consider an scenario, Online business Flipkart is there, it uses some times DTDC or Blue Dart courier service , So let me design a application which ...
If you are behind a proxy and need to connect to the internet, you can use: export http_proxy="http://username:password@host:port/" For configuring the proxy inside apt-get: cd /etc/apt/apt.conf.d Create a file named 10proxy: sudo nano 10proxy Without authentication add the fol...
Detailed instructions on getting tcpdf set up or installed.
using System; using System.IO; using System.Security.Cryptography; namespace Aes_Example { class AesExample { public static void Main() { try { string original = "Here is some data to encrypt!"; ...

Page 1005 of 1336