Tutorial by Examples: v

Connecting two child processes via a pipe is performed by connecting each of two children to the parent via different ends of the same pipe. Usually, the parent will not be party to the conversation between the children, so it closes its copies of both pipe ends. int demo() { int pipefds[2]; ...
An example of defining a hash table and accessing a value by the key $hashTable = @{ Key1 = 'Value1' Key2 = 'Value2' } $hashTable.Key1 #output Value1 An example of accessing a key with invalid characters for a property name: $hashTable = @{ 'Key 1' = 'Value3' Key2 = 'Val...
$hashTable = @{ Key1 = 'Value1' Key2 = 'Value2' } foreach($key in $hashTable.Keys) { $value = $hashTable.$key Write-Output "$key : $value" } #Output Key1 : Value1 Key2 : Value2
An example, to add a "Key2" key with a value of "Value2" to the hash table, using the addition operator: $hashTable = @{ Key1 = 'Value1' } $hashTable += @{Key2 = 'Value2'} $hashTable #Output Name Value ---- -----...
This package is created to handle server-side works of DataTables jQuery Plugin via AJAX option by using Eloquent ORM, Fluent Query Builder or Collection. Read more about this here or here
Intervention Image is an open source PHP image handling and manipulation library. It provides an easier and expressive way to create, edit, and compose images and supports currently the two most common image processing libraries GD Library and Imagick. Read more about this here
Get your APIs and Admin Panel ready in minutes.Laravel Generator to generate CRUD, APIs, Test Cases and Swagger Documentation Read more about this here
Live upcase server that returns error when input string is longer than 10 characters. Server: const express = require('express'), jsonParser = require('body-parser').json(), app = express(); // Add headers to work with elm-reactor app.use((req, res, next) => { res.setHeader...
The Vector3 structure contains some static variables that provide commonly used Vector3 values. Most represent a direction, but they can still be used creatively to provide additional functionality. Vector3.zero and Vector3.one Vector3.zero and Vector3.one are typically used in connection to a...
Laravel Socialite provides an expressive, fluent interface to OAuth authentication with Facebook, Twitter, Google, LinkedIn, GitHub and Bitbucket. It handles almost all of the boilerplate social authentication code you are dreading writing. Read more about this here
JSX is not meant to be interpreted by the browser. It must be first transpiled into standard Javascript. To use JSX you need to install the plugin for babel babel-plugin-transform-vue-JSX Run the Command below: npm install babel-plugin-syntax-jsx babel-plugin-transform-vue-jsx babel-helper-vue-jsx...
The code below calculates the value of PI using a recursive approach. Modify the MAX_PARALLEL_RECURSIVE_LEVEL value to determine at which recursion depth stop creating tasks. With this approach to create parallelism out of recursive applications: the more tasks you create, the more parallel tasks cr...
Sometimes you need to make a script for someone but you are not sure what he has on his machine. Is there everything that your script needs? Not to worry. Bundler has a great function called in line. It provides a gemfile method and before the script is run it downloads and requires all the necessa...
var express=require("express"); //express is included var path=require("path"); //path is included var app=express(); //app is an Express type of application app.set("views",path.resolve(__dirname,"views")); //tells express about the locati...
app.get("/",function(req,res){ response.render("index",{ //render the index when root(/) is requested message:"rendered view with ejs" }); });
Use the config.frameworks option to get an array of Symbols that represent each framework.
ActionMailer ActionPack ActionWebService ActiveRecord ActiveSupport Railties
import React from 'react'; import Pane from './components/Pane.js'; import Panel from './components/Panel.js'; import PanelGroup from './components/PanelGroup.js'; class MainView extends React.Component { constructor(props) { super(props); } render() { return...
<div ng-repeat="(key, value) in myObj"> ... </div> For example <div ng-repeat="n in [42, 42, 43, 43]"> {{n}} </div>
Donald Knuth is often quoted as saying this: "Programmers waste enormous amounts of time thinking about, or worrying about, the speed of noncritical parts of their programs, and these attempts at efficiency actually have a strong negative impact when debugging and maintenance are considered....

Page 232 of 296