Tutorial by Examples

First install gulp and browserify via npm i gulp gulp-browserify. This will install browserify into your node_modules folder. gulpfile.js var gulp = require('gulp'); var browserify = require('gulp-browserify'); gulp.task('script', function() { gulp.src('./src/script.js') .pipe(br...
First install gulp and browserify via npm i gulp gulp-coffeeify. This will install browserify into your node_modules folder. gulpfile.js var gulp = require('gulp'); var coffeeify = require('gulp-coffeeify'); gulp.task('script', function() { gulp.src('./src/script.coffee') .pipe(c...
CREATE INDEX index_name ON TABLE base_table_name (col_name, ...) AS 'index.handler.class.name' [WITH DEFERRED REBUILD] [IDXPROPERTIES (property_name=property_value, ...)] [IN TABLE index_table_name] [PARTITIONED BY (col_name, ...)] [ [ ROW FORMAT ...] STORED AS ... | STORED BY ... ] [LO...
If we want to display a jquery calendar for end user who can pick maximum date as current date in the calendar. The below code will useful to this scenario. <?php use yii\jui\DatePicker; use yii\widgets\ActiveForm; ?> <?php $form = ActiveForm::begin(['id' => 'profile-form']); ?&gt...
For some forms you want display the days from future/past days and other days need to disabled, then this scenario will help. <?php use yii\jui\DatePicker; use yii\widgets\ActiveForm; ?> <?php $form = ActiveForm::begin(['id' => 'profile-form']); ?> ..... <?php $day = '+...
If you want to have calendar for from date and to date and also to date calendar days always will be greater than from date field, then below scenario will help. <?php $form = ActiveForm::begin(['id' => 'profile-form']); ?> ..... <?= $form->field($model, 'from_date')->widget(D...
app.js angular.module('myApp', ['ui.router']) .service('User', ['$http', function User ($http) { this.getProfile = function (id) { return $http.get(...) // method to load data from API }; }]) .controller('profileCtrl', ['profile', function profileCtrl (profile) { // i...
url: /api/data/v8.0/annotations json: { "isdocument": true, "mimetype": "text/plain", "documentbody": "dGVzdA==", "[email protected]" : "/accounts(c6da77b6-d53e-e611-80b9-0050568a6c2d)", "...
url: /api/data/v8.0/accounts json: { "name" : "New account" }
url: /api/data/v8.0/contacts json: { "firstname" : "New", "lastname" : "Contact", "[email protected]" : "/accounts(c6da77b6-d53e-e611-80b9-0050568a6c2d)" } As the parentcustomerid can be an account or ...
Matplotlib has its own implementation of boxplot. The relevant aspects of this function is that, by default, the boxplot is showing the median (percentile 50%) with a red line. The box represents Q1 and Q3 (percentiles 25 and 75), and the whiskers give an idea of the range of the data (possibly at Q...
docker inspect command can be used to debug the container logs. The stdout and stderr of container can be checked to debug the container, whose location can be obtained using docker inspect. Command : docker inspect <container-id> | grep Source It gives the location of containers stdout an...
First of all download Yii Booster latest end user bundle from here. Download it, unpack its contents to some directory inside your web application. Its recomended to unpack it to the extensions directory. Rename the folder from yiibooster-<version_number> to just yiibooster for convenience. ...
This is the equivalent of the other example but using ES6 instead. export function printHelloWorld() { console.log("Hello World!!!"); }
In the following example consider you have a solution hosting two projects: ConsoleApplication1 and SampleClassLibrary. The first project will have the classes SampleClass1 and SampleClass2. The second one will have SampleClass3 and SampleClass4. In other words we have two assemblies with two classe...
Enabling Attribute Routing To enable attribute routing, call MapMvcAttributeRoutes during configuration. public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute(“{resource}.axd/{*pathInfo}”); routes.MapMvcAttributeRoutes(); routes.MapRoute( name: “Default”, ...
Let's explore the syntax differences by comparing two code examples. React.createClass (deprecated) Here we have a const with a React class assigned, with the render function following on to complete a typical base component definition. import React from 'react'; const MyComponent = React.crea...
A basic VisualForce page can be created like this: <apex:page> <h1>Hello, world!</h1> </apex:page>
If your page is for displaying or editing information about a particular type of record, it may be helpful to use a standard controller to reduce the amount of boilerplate code you need to write. By using a standard controller, your page will be displayed with an ?id=SALESFORCE_ID parameter, and yo...
It is a good practice to encrypt your Web.config file if you have sensitive information there, for example a connection string with password. With the ASP.NET IIS Registration tool (Aspnet_regiis.exe) you can easily encrypt specific sections of Web.config file. A command with elevated privileges is...

Page 874 of 1336