Tutorial by Examples

This tslint.json example contains a set of configuration to enforce more typings, catch common errors or otherwise confusing constructs that are prone to producing bugs and following more the Coding Guidelines for TypeScript Contributors. To enforce this rules, include tslint in your build process ...
Many, pure python, packages are not yet available on the Python Package Index as wheels but still install fine. However, some packages on Windows give the dreaded vcvarsall.bat not found error. The problem is that the package that you are trying to install contains a C or C++ extension and is not c...
There are important changes in how we use and declare default props and their types. React.createClass In this version, the propTypes property is an Object in which we can declare the type for each prop. The getDefaultProps property is a function that returns an Object to create the initial props....
There are changes in how we are setting the initial states. React.createClass We have a getInitialState function, which simply returns an Object of initial states. import React from 'react'; const MyComponent = React.createClass({ getInitialState () { return { activePage: 1 ...
Custom binding definition function regExReplace(element, valueAccessor, allBindingsAccessor, viewModel, bindingContext) { var observable = valueAccessor(); var textToReplace = allBindingsAccessor().textToReplace || ''; var pattern = allBindingsAccessor().pattern || ''; var flags = all...
To create a node, you first need to have a hub. If you don't have a hub, you can create it like this: java -jar selenium-server-standalone-<version>.jar -role hub Then you're able to create a node: java -jar selenium-server-standalone-<version>.jar -role node -hub http://localhost:4...
This approach will generate one table on the database to represent all the inheritance structure. Example: public abstract class Person { public int Id { get; set; } public string Name { get; set; } public DateTime BirthDate { get; set; } } public class Employee : Person { ...
This approach will generate (n+1) tables on the database to represent all the inheritance structure where n is the number of subclasses. How to: public abstract class Person { public int Id { get; set; } public string Name { get; set; } public DateTime BirthDate { get; set; } } ...
There is no such things as .sln and .proj files. Instead of them folders are being used in Visual Studio Code. Each project folder should have a seperate project.json file. /MyProject.Core SourceFile.cs project.json /MyProject.Web /Controllers /Views project.json To refe...
It is very common to group projects, for example, place test projects under the /test folder and source projects under the /src folder. Add global.json file and make similar structure: global.json /src/ /MyProject.Core/ SourceFile.cs project.json /MyProject.Web/ ...
This will disable the SSH server side service, as if needed this will insure that clients cannot connect via ssh Ubuntu sudo service ssh stop Debian sudo /etc/init.d/ssh stop Arch Linux sudo killall sshd
We can use mixins only with the React.createClass way. React.createClass In this version we can add mixins to components using the mixins property which takes an Array of available mixins. These then extend the component class. import React from 'react'; var MyMixin = { doSomething() { ...
If you don't want to extend Application and keep your toast messages thread safe, make sure you show them in the post execute section of your AsyncTasks. public class MyAsyncTask extends AsyncTask <Void, Void, Void> { @Override protected Void doInBackground(Void... params) { ...
CI/CD pipeline Centralized authentication and authorization service API documentation API gateway Centralize log management tool Service monitor Infrastructure Automation Centralized config server
Given a file like this: $ cat file hello/how/are/you i am fine You can use /pattern/ to match specific lines: $ sed -n '/hello/p' file hello/how/are/you If the pattern contains slashes itself, you can use another delimiter using \cBREc: $ sed -n '\#hello/how#p' file hello/how/are/you $...
A generic Car class has some car property and a description method class Car{ name:string; engineCapacity:string; constructor(name:string,engineCapacity:string){ this.name = name; this.engineCapacity = engineCapacity; } describeCar(){ console....
here countInstance is a static class variable class StaticTest{ static countInstance : number= 0; constructor(){ StaticTest.countInstance++; } } new StaticTest(); new StaticTest(); console.log(StaticTest.countInstance);
go to codeigniter/application/libraries/ create or replace your library files here. go to codeigniter/application/core/ create a new php file named like MY_Controller.php inside MY_Controller.php <?php class MY_Controller extends CI_Controller{ public function __construct(){ pa...
SQlite example Step by step Explanation The steps below demonstrate how to include this component in a Xamarin.Forms Shared Project: to add packages in (pcl,Andriod,Windows,Ios) Add References Click on Manage Nuget packages ->click on Browse to install SQLite.Net.Core-PCL , SQLite Net Ext...
Best way to connect amazon redshift using JDBC , Use proper driver as per version http://docs.aws.amazon.com/redshift/latest/mgmt/configure-jdbc-connection.html Step-1: npm install jdbc Step-2: var JDBC = require('jdbc'); var jinst = require('jdbc/lib/jinst'); // isJvmCreated will be true afte...

Page 1017 of 1336