Tutorial by Examples: all

Lets have the following file called library.cmd : @echo off echo -/-/- Batch Functions Library -/-/- :function1 echo argument1 - %1 goto :eof To execute only the :function1 without the code of the rest of the file you should put a label :function1 in the caller bat and use it lik...
General-purpose stopwatch for timing how long a function takes to run: object Benchmark { fun realtime(body: () -> Unit): Duration { val start = Instant.now() try { body() } finally { val end = Instant.now() return Duration.b...
PGSQL> SELECT COALESCE(NULL, NULL, NULL); coalesce --------
Installation pip install Flask-SQLAlchemy Simple Model class User(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(80)) email = db.Column(db.String(120), unique=True) The code example above shows a simple Flask-SQLAlchemy model, we can add an ...
Detailed instructions on getting prism set up or installed.
My laptop is having Windows 10. Here i am giving steps that you can follow to test and learn Ansible. SOME THEORY For Ansible you need a Control Machine and a host(or hosts) to run the Playbook. Control Machine should be Linux based or MacOS(windows not allowed) and need Python (2.6 or higher v...
Detailed instructions on getting freemarker set up or installed.
All of the other buttons you can create, are buttons that link to a GitHub repository and prompts the user to complete a certain action. These buttons can do actions such as: Watch a repository Star a repository Fork a repository Download a repository List an Issue with a repository Here's...
Detailed instructions on getting join set up or installed.
Detailed instructions on getting graphviz set up or installed.
Locate and open your TIBCO BW bwengine.tra file typlically under TIBCO_HOME/bw/5.12/bin/bwengine.tra (Linux environment) Look for the line that states: *** Common variables. Modify these only. *** Add the following line right after that section tibco.deployment=%tibco.deployment% ...
A minimal setup for camera output preview (Swift 2, Swift 3) import UIKit import AVFoundation class ViewController: UIViewController { var session: AVCaptureSession? var cameraPreviewLayer: AVCaptureVideoPreviewLayer? override func viewDidLoad() { super.viewDidLoad() ...
Detailed instructions on getting nfc set up or installed.
Detailed instructions on getting kinect set up or installed.Setting Up a Kinect Sensor Kinect for Windows 1.5, 1.6, 1.7, 1.8 Here are some simple steps to get your Kinect sensor up and running. Step 1: Mount the Sensor on a Stable Surface Place the sensor on a stable surface in a location wh...
Request:"http://example.com" GET / HTTP/1.1 Host: example.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0 Accept: text/* Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Connection: keep-alive The client will accept Content...
By default, TensorFlow pre-allocate the whole memory of the GPU card (which can causes CUDA_OUT_OF_MEMORY warning). To change this, it is possible to change the percentage of memory pre-allocated, using per_process_gpu_memory_fraction config option, A value between 0 and 1 that indicates wh...
This is how you install the gcloud command-line tool, which is a part of the Google Cloud SDK. $ curl https://sdk.cloud.google.com | bash
Detailed instructions on getting microsoftgraph set up or installed.
"""PyAudio Example: Play a wave file (callback version).""" import pyaudio import wave import time import sys if len(sys.argv) < 2: print("Plays a wave file.\n\nUsage: %s filename.wav" % sys.argv[0]) sys.exit(-1) wf = wave.open(sys.arg...
<?xml version="1.0"?> <openerp> <data noupdate="1"> <function model="*model_name*" name="_configure_sales"/> </data> </openerp> This simple xml file is calls _configure_sales function from model_name ...

Page 108 of 113