Tutorial by Examples

To run WordPress on your computer you need to configurate a database first. Be sure that Apache and MySQL are running (see Installing XAMPP step 3) Start a web browser of your choice and enter "localhost" in the address. Choose your preferred language and select in the category "...
After you installed XAMPP and setup the MySQL database you can install WordPress. Download the latest version of WordPress. Unzip the file and insert the folder in the root directory of your webserver (if you used the suggested path during the setup of XAMPP it is "c:\xampp\htdocs"). ...
Note: These instructions are targeted at .NET Core 1.0.4 & 1.1.1 SDK 1.0.1 and higher. When using binary archives to install, we recommend the contents be extracted to /opt/dotnet and a symbolic link created for dotnet. If an earlier release of .NET Core is already installed, the directory and ...
An anonymous, inlined function defined with lambda. The parameters of the lambda are defined to the left of the colon. The function body is defined to the right of the colon. The result of running the function body is (implicitly) returned. s=lambda x:x*x s(2) =>4
Map takes a function and a collection of items. It makes a new, empty collection, runs the function on each item in the original collection and inserts each return value into the new collection. It returns the new collection. This is a simple map that takes a list of names and returns a list of the...
Reduce takes a function and a collection of items. It returns a value that is created by combining the items. This is a simple reduce. It returns the sum of all the items in the collection. total = reduce(lambda a, x: a + x, [0, 1, 2, 3, 4]) print(total) =>10
Filter takes a function and a collection. It returns a collection of every item for which the function returned True. arr=[1,2,3,4,5,6] [i for i in filter(lambda x:x>4,arr)] # outputs[5,6]
webpack.config.js const webpack = require("webpack") const helpers = require('./helpers') const path = require("path") const WebpackNotifierPlugin = require('webpack-notifier'); module.exports = { // set entry point for your app module "entry": { ...
Detailed instructions on getting identityserver3 set up or installed.
Create a new bot in Azure following this documentation Login into Azure and from Intelligence + Analytics category, select Bot Service and provide required information. Enter the required details for the bot, they are identical to the required details of an App Service,for example App Name, Subs...
If you're in a hurry and want to quickly get a speed boost PLUS save some power, go into Power Save Mode. It's in the File menu, bottom-most option in that menu. File -> Power Save Mode Note: this will disable some powerful features like syntax highlighting, code analysis, auto-completing thing...
let label = UILabel.init(frame: CGRect(x: 0, y:0, width: 100, height: 40)) label.backgroundColor = .lightGray let attributedString = NSMutableAttributedString.init(string: "Apply UnderLining") attributedString.addAttribute(NSUnderlineStyleAttributeName, value: 1, range: NSRange.init...
Simply add an attribute to the controller action [Route("product/{productId}/customer")] public IQueryable<Product> GetProductsByCustomer(int productId) { //action code goes here } this will be queried as /product/1/customer and productId=1 will be sent to the controll...
//Header File <CallKit/CXCallObserver.h> CXCallObserver *callObserver = [[CXCallObserver alloc] init]; // If queue is nil, then callbacks will be performed on main queue [callObserver setDelegate:self queue:nil]; // Don't forget to store reference to callObserver, to prevent it ...
Unit testing in ionic is the same as in any angular app. We'll be using a few frameworks to do this. Karma - a framework for running tests Jasmine - a framework for writing tests PhantomJS - an application that runs javascript without a browser First of all lets install everything, so make sure...
Using find() const inventory = [ {name: 'apples', quantity: 2}, {name: 'bananas', quantity: 0}, {name: 'cherries', quantity: 5} ]; function findCherries(fruit) { return fruit.name === 'cherries'; } inventory.find(findCherries); // { name: 'cherries', quantity: 5 } /*...
Everything in Python is an object. Each object has some special internal methods which it uses to interact with other objects. Generally, these methods follow the __action__ naming convention. Collectively, this is termed as the Python Data Model. You can overload any of these methods. This is comm...
HTMLUnitDriver HTMLUnitDriver is the most lightweight implementation of headless(GUI-less) browser for Webdriver based on HtmlUnit. It models HTML documents and provides an API that allows you to invoke pages, fill out forms, click links, etc. just like you do in your normal browser. It supports J...
A way to create a list is to place elements in two square brackets, separated by semicolons. The elements must have the same type. Example: > let integers = [1; 2; 45; -1];; val integers : int list = [1; 2; 45; -1] > let floats = [10.7; 2.0; 45.3; -1.05];; val floats : float list = [1...

Page 1200 of 1336