Tutorial by Examples

Ionic Platform: Build, push, deploy, and scale your Ionic apps, the easy way. Title Description: The Ionic Platform is a cloud platform for managing and scaling cross-platform mobile apps. Integrated services enable you and your team to build, deploy, and grow your apps efficiently. Docume...
If you are working with a Java EE 6+ application server, CDI is part of the container and you do not need to do anything to start using it. But CDI is not limited to Java EE application servers. It can be used in Java SE applications or simple servlet containers just as easily. Let's take a look at ...
To create a template for the single posts of our custom post type, we need to create a file called single-post_type_name.php where post_type_name is the name of our custom post type. For example, if our custom post type is called “Books”, we need to create a PHP file called single-book.php. Note th...
In this example code we will create A blank Opengl Window using LWJGL 3.0+, this doesn't contain steps to create the project in your IDE Create a class name WindowManager that will contain all the boiler plate code for creating a opengl context window on screen WindowManager.java impor...
This is what I do when I'm working with Firebase and I want to use ListView. Use a parent component to retrieve the data from Firebase (Posts.js): Posts.js import PostsList from './PostsList'; class Posts extends Component{ constructor(props) { super(props); this.state =...
The Constructor Dependency Injection requires parameters in the constructor to inject dependencies. So you have to pass the values when you create a new object. public class Example { private readonly ILogging _logging; public Example(ILogging logging) { this._logging = l...
public class Example { private FileLogging _logging; public Example() { this._logging = new FileLogging(); } }
public DateTime SomeCalculation() { return DateTime.Now.AddDays(3); } vs public DateTime SomeCalculation(DateTime inputDate) { return inputDate.AddDays(3); }
> chmod 644 example.txt > ls -l example.txt -rw-r--r-- 1 owner ogroup 57 Jul 3 10:13 example.txt The above command changes the file permissions to allow the file owner to read and write to a file. It also allows users in the owner's group and other users in the system to read the file....
function createNewFolderInGoogleDrive() { var folderName,newFolder;//Declare variable names folderName = "Test Folder " + new Date().toString().slice(0,15);//Create a new folder name with date on end newFolder = DriveApp.createFolder(folderName);//Create a new folder in the ro...
function createGoogleDriveFileOfMimeType() { var content,fileName,newFile;//Declare variable names fileName = "Test File " + new Date().toString().slice(0,15);//Create a new file name with date on end content = "This is the file Content"; newFile = DriveApp.crea...
function createGoogleDriveTextFile() { var content,fileName,newFile;//Declare variable names fileName = "Test Doc " + new Date().toString().slice(0,15);//Create a new file name with date on end content = "This is the file Content"; newFile = DriveApp.createFile(...
function createGoogleDriveFileWithBlob() { var blob,character,data,fileName,i,L,max,min,newFile,randomNmbr;//Declare variable names fileName = "Test Blob " + new Date().toString().slice(0,15);//Create a new file name with date on end L = 500;//Define how many times to loop...
function processGoogleDriveFolders() { var arrayAllFolderNames,continuationToken,folders,foldersFromToken,thisFolder;//Declare variable names arrayAllFolderNames = [];//Create an empty array and assign it to this variable name folders = DriveApp.getFolders();//Get all folders from G...
function processGoogleDriveFiles() { var arrayAllFileNames,continuationToken,files,filesFromToken,fileIterator,thisFile;//Declare variable names arrayAllFileNames = [];//Create an empty array and assign it to this variable name files = DriveApp.getFiles();//Get all files from Google...
1. Add Unity to your project. If you use NuGet you can use the Unity-package. Run Install-Package Unity in Package Manager Console. This will add the Unity library (and it's dependencies) to your project. 2. Create an implementation of IDependencyResolver. For example: public class UnityResolver...
show dbs or db.adminCommand('listDatabases') or db.getMongo().getDBNames()
show collections or show tables or db.getCollectionNames()
Imports System.Data.OleDb Private WithEvents _connection As OleDbConnection Private _connectionString As String = "myConnectionString" Public ReadOnly Property Connection As OleDbConnection Get If _connection Is Nothing Then _co...
Two useful higher-order functions are the binary application (@@) and reverse-application or "pipe" (|>) operators. Although since 4.01 they're available as primitives, it might still be instructive to define them here: let (|>) x f = f x let (@@) f x = f x Consider the problem ...

Page 877 of 1336