Tutorial by Examples: a

import lombok.Builder; @Builder public class Email { private String to; private String from; private String subject; private String body; } Usage example: Email.builder().to("[email protected]") .from("[email protected]") .subject(...
Create a folder Create an index.html inside the new directory. Open it in the Bracket editor Download the Phaser repository from github, then grab the phaser.js file from the build folder. Place the file inside your project directory. Open index.html and link the phaser.js inside the header tag...
app.js var app = angular.module('myApp',['ui.router']); app.config(function($stateProvider,$urlRouterProvider) { $stateProvider .state('home', { url: '/home', templateUrl: 'home.html', controller: function($scope){ $scope.text = 'This is the ...
Mapreduce is a programming model to do processing on (very) large amounts of data. Traditional 'HPC' (High Performance Computing) speeds up large calculations on relatively large amounts of data by creating a set of highly connected computers (using things like extremely quick networking, and quick...
Blackboard.cs using System; using System.Collections.Generic; using System.Text; using System.Linq; namespace Blackboard { public class BlackBoard { public List<KnowledgeWorker> knowledgeWorkers; protected Dictionary<string, ControlData> data; ...
#!/usr/bin/env node var fs = require('fs'); var path = require('path'); var jshint = require('jshint').JSHINT; var async = require('async'); var foldersToProcess = [ 'js' ]; foldersToProcess.forEach(function(folder) { processFiles("www/" + folder); }); function proce...
Insert the following function call within your JavaScript when searching within your website to track how visitors are using your internal search features. In this example, the Event Action filters is a comma-delimited list of search filter name/value pairs, and the Event Label orderedBy is a strin...
Adding a product to a shopping cart (Label item.name references the name property of the product added): ga('send', 'event', 'Cart', 'Add', product.name); This lets you see what people are adding to the shopping cart, even if they never complete the order, allowing more insight into where users ...
class MyClass { private String privateField } def prvtClss = new MyClass(privateField: 'qwerty') println prvtClss.privateField will print us 'qwerty' This issue is known since version 1.1 and there is a bug report on that: http://jira.codehaus.org/browse/GROOVY-1875. It is not reso...
To be able to create a server, you need to have the spigot or the bukkit jar file. Reefer to the versions topic to select your jar First, create a new folder. In that folder, put the spigot/bukkit jar file. Right click in the folder, and choose New > Text Document. Name the new document star...
This can be done in 3 steps : You must define an elixir module which use Ecto.Repo and register your app as an otp_app. defmodule Repo do use Ecto.Repo, otp_app: :custom_app end You must also define some config for the Repo which will allow you to connect to the database. Here is an...
If you have an Ecto.Queryable, named Post, which has a title and an description. You can fetch the Post with title: "hello" and description : "world" by performing : MyRepo.get_by(Post, [title: "hello", description: "world"]) All of this is possible beca...
PHPUnit provides the following function to assert whether an object is an instance of a class: assertInstanceOf($expected, $actual[, $message = '']) The first parameter $expected is the name of a class (string). The second parameter $actual is the object to be tested. $message is an optional ...
For the following schema: {name: 'Tom', age: 28, marks: [50, 60, 70]} Update Tom's marks to 55 where marks are 50 (Use the positional operator $): db.people.update({name: "Tom", marks: 50}, {"$set": {"marks.$": 55}}) For the following schema: {name: 'Tom', age:...
After a statement was executed, a call to sqlite3_reset() brings it back into the original state so that it can be re-executed. Typically, while the statement itself stays the same, the parameters are changed: const char *sql = "INSERT INTO MyTable(ID, Name) VALUES (?, ?)"; sqlite3_stmt...
/_build /cover /deps erl_crash.dump *.ez /rel
/_build /db /deps /*.ez erl_crash.dump /node_modules /priv/static/ /config/prod.secret.exs /rel
/// <summary> /// Overrides the onDisconnected function and sets the user object to offline, this can be checked when other players interacts with them... /// </summary> /// <param name="stopCalled"></param> /// <returns></returns&gt...
The docker --link argument, and link: sections docker-compose make aliases to other containers. docker network create sample docker run -d --net sample --name redis redis With link either the original name or the mapping will resolve the redis container. > docker run --net sample --link red...

Page 728 of 1099