Tutorial by Examples: alla

var tasks = Enumerable.Range(1, 5).Select(n => new Task<int>(() => { Console.WriteLine("I'm task " + n); return n; })).ToArray(); foreach(var task in tasks) task.Start(); Task.WaitAll(tasks); foreach(var task in tasks) Console.WriteLine(task.Result); ...
If your computation produces some return value which later is required, a simple Runnable task isn't sufficient. For such cases you can use ExecutorService.submit(Callable<T>) which returns a value after execution completes. The Service will return a Future which you can use to retrieve the r...
class adder(object): def __init__(self, first): self.first = first # a(...) def __call__(self, second): return self.first + second add2 = adder(2) add2(1) # 3 add2(2) # 4
alias -p will list all the current aliases.
Install the svn client to start collaborating on the project that is using Subversion as its version control system. To install Subversion, you can build it yourself from a source code release or download a binary package pre-built for your operating system. The list of sites where you can obtain a...
QML comes with newer Version of the cross-platform application framework Qt. You can find the newest Version of Qt in the Downloads section. To create a new QML Project in the Qt Creator IDE, select "File -> New ..." and under "Applications" select "Qt Quick-Application...
Binaries Lua binaries are provided by most GNU/Linux distributions as a package. For example, on Debian, Ubuntu, and their derivatives it can be acquired by executing this: sudo apt-get install lua50 sudo apt-get install lua51 sudo apt-get install lua52 There are some semi-of...
To install MongoDB, follow the steps below: For Mac OS: There are two options for Mac OS: manual install or homebrew. Installing with homebrew: Type the following command into the terminal: $ brew install mongodb Installing manually: Download the latest release here. Ma...
Background TypeScript is a typed superset of JavaScript that compiles directly to JavaScript code. TypeScript files commonly use the .ts extension. Many IDEs support TypeScript without any other setup required, but TypeScript can also be compiled with the TypeScript Node.JS package from the command...
Installing Visual Studio If you do not have Visual Studio installed, you can download the free Visual Studio Community Edition here. If you already have it installed, you can proceed to the next step. Creating an ASP.NET Core MVC Application. Open Visual Studio. Select File > New Project. ...
Yii2 can be installed in two ways. They are Installing via Composer Installing from an Archive File Installing via Composer Installing Composer If you do not already have Composer installed, you may do so by following the instructions at getcomposer.org. On Linux and Mac OS X, you'll run th...
Use pip to install Flask in a virtualenv. pip install flask Step by step instructions for creating a virtualenv for your project: mkdir project && cd project python3 -m venv env # or `virtualenv env` for Python 2 source env/bin/activate pip install flask Never use sudo pip in...
Laravel applications are installed and managed with Composer, a popular PHP dependency manager. There are two ways to create a new Laravel application. Via Composer $ composer create-project laravel/laravel [foldername] Or $ composer create-project --prefer-dist laravel/laravel [foldername] ...
Detailed instructions on getting pandas set up or installed can be found here in the official documentation. Installing pandas with Anaconda Installing pandas and the rest of the NumPy and SciPy stack can be a little difficult for inexperienced users. The simplest way to install not only pandas, ...
ReactJS is a JavaScript library contained in a single file react-<version>.js that can be included in any HTML page. People also commonly install the React DOM library react-dom-<version>.js along with the main React file: Basic Inclusion <!DOCTYPE html> <html> <...
Knockout is available on most JavaScript platforms, or as a standalone script. Include as a script You can download the script from it's download page, then include it in your page with a standard script tag <script type='text/javascript' src='knockout-3.4.0.js'></script> Using a C...
Prerequisites and Requirements for Magento Community Edition 1.9 Hosting Apache 2.x ( with mod_rewrite ) or Nginx 1.7.x Due to the demands of processing Magento operations, it is recommended that you install Magento on a server with at least 2 GB of RAM. This will ensure that all of the s...
Windows If you have Visual Studio (any version including express and community) installed, F# should already be included. Just choose F# as the language when you create a new project. Or see http://fsharp.org/use/windows/ for more options. OS X Xamarin Studio supports F#. Alternately, you could u...
Downloading: Download Bootstrap directly or clone, etc. from the GitHub repository Download your customized version of Bootstrap from official docs Install with bower: bower install bootstrap Install with npm: npm install bootstrap Install with composer: composer require twbs/bootstrap The...
Windows PowerShell is included with the Windows Management Framework. Installation and Setup are not required on modern versions of Windows. Updates to PowerShell can be accomplished by installing a newer version of the Windows Management Framework. Other Platforms "Beta" version of P...

Page 1 of 51