Tutorial by Examples

You can navigate to your desired classes, functions, structures, etc using the top navigation bar here. Simply click on it, a drop-down list will popup. Click on the desired variable you want to edit, and it will automatically bring to that block of code. Alternatively, you can also use the Soluti...
Master process spawns two worker processes and scatters sendbuf to workers. master.c #include "mpi.h" int main(int argc, char *argv[]) { int n_spawns = 2; MPI_Comm intercomm; MPI_Init(&argc, &argv); MPI_Comm_spawn("worker_program", MPI_ARGV_NULL...
Install Firebase resource in the the AppScript To do that click on Resources and then on Libraries. Firebase has a unique project library key that need to be installed in the AppScript. Click on Libraries The following pop-up appears. Enter the following project key in the textbox. MYeP8ZEE...
1. To write a simple data to test whether connection is working or not. function myFunction(){ var firebaseUrl = "https://example-app.firebaseio.com/"; var secret = "secret-key"; var base = FirebaseApp.getDatabaseByUrl(firebaseUrl, secret); base.setData("test&quo...
Team Foundation Server (TFS) can be installed in two basic infrastructure ways, Single Server Deployment and Multi-Server Deployment. The difference between these two deployments is where the Application Tier (TFS) and the Data Tier (MS SQL) reside. It is considered best practice to install TFS in...
it is very easy to write an angularJS controller with ES6 if your are familiarized with the Object Oriented Programming : class exampleContoller{ constructor(service1,service2,...serviceN){ let ctrl=this; ctrl.service1=service1; ctrl.se...
Master process spawns server and client applications with a single process for each application. Server opens a port and client connects to that port. Then client sends data to server with MPI_Send to verify that the connection is established. master.c #include "mpi.h" int main(int ar...
public void OpenXmppConnection(int port, bool useSsl, string serverJid, string userName, string password) { try { _xmppClientConnection.AutoResolveConnectServer = true; _xmppClientConnection.Port = port; _xmppClien...
public class ConnectionManager { private XmppClientConnection _xmppClientConnection = null; public ConnectionManager() { if (_xmppClientConnection == null) { _xmppClientConnection = new ...
First step of creating a plugin is creating the folder and file which the plugin will load from. Plugins are located in /wp-content/plugins/. The WordPress standard is to create a folder and filename that mirror each other like so: /wp-content/plugins/myplugin/ /wp-content/plugins/myplugin/myplu...
Some projects like GoLang might need to clone other dependent GitLab repositories during build. To get this working you can add a Deploy Key to dependent repositories and put the private key (without password) into the origin repository. Create and check-in a SSH key inside the Git Repository that ...
public class ConversationManager { #region ClassMemeber private XmppClientConnection _xmppClientConnection = null; public ConversationManager(XmppClientConnection con) { _xmppClientConnection = con...
We have here a file Size filter to describe how to add costum filter to an existing module : let fileSize=function (size,unit,fixedDigit) { return size.toFixed(fixedDigit) + ' '+unit; }; let fileSizeFilter=function () { return function (size) { if (isNaN(size)) ...
QTP uses VBScript as its programming language. Therefore a Hello World example can be given in pure VBScript: MsgBox "Hello World!" Executing this script (by pressing F5 or clicking the Play button on the taskbar) will produce a message box with the text "Hello World!" in it...
Detailed instructions on getting spring-data-rest set up or installed.
Creates a graph topology in a distributed manner so that each node defines its neighbors. Each node communicates its rank among neighbors with MPI_Neighbor_allgather. #include <mpi.h> #include <stdio.h> #define nnode 4 int main() { MPI_Init(NULL, NULL); int rank; ...
import static org.junit.Assert.assertThat; import static org.hamcrest.CoreMatchers.is; import java.util.*; import org.junit.*; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameters; @RunWith(Parameterized.class) public cl...
println("Hello Scala.js") // In ES6: console.log("Hello Scala.js");
val lastNames = people.map(p => p.lastName) // Or shorter: val lastNames = people.map(_.lastName)
class Person(val firstName: String, val lastName: String) { def fullName(): String = s"$firstName $lastName" }

Page 1185 of 1336