Tutorial by Examples

English text has the occasional diacritics. Loan words, like née, café, entrée Names, like Noël and Chloë Place names, like Montréal and Québec
Emoji are quite popular with social media these days. ☃: U+2603 — SNOWMAN 😀: U+01F600 — GRINNING FACE 🐪: U+01F42A — DROMEDARY CAMEL Note that most emoji are outside the Basic Multilingual Plane. A lot of newer additions consist of more than one code point: 🇯🇵: A flag is defined as a p...
Almost all written text has punctuation marks which are outside the ASCII character set: dashes: the en dash –, and the em dash — Quotation marks: “quotes” rather than "quotes" The ellipsis…
There are a few common symbols in use: copyright sign ©, and trademark signs ® ™ fractions like ¼ superscripts. For instance, a shorthand for square meters is m².
fork() is a system call. fork is used to create a child process from the running process, which is a replica of the parent process(Process which executed fork() ). Child process is derived from the parent process. Both the parent and child have different address space, each is independent of the cha...
If you want to set some alias name to installed node version, do: nvm alias <name> <version> Similary to unalias, do: nvm unalias <name> A proper usecase would be, if you want to set some other version than stable version as default alias. default aliased versions are loade...
In this example we create a new list element with the text "new text", and select the first unordered list, and its first list element. let newElement = document.createElement("li"); newElement.innerHTML = "new text"; let parentElement = document.querySelector(&quo...
In this example we create a new list element with the text "new text", and select the first unordered list, and its first list element. let newElement = document.createElement("li"); newElement.innerHTML = "new text"; let parentElement = document.querySelector(&quo...
An element can be removed by calling remove() on it. Alternatively, one can call removeChild() on its parent. removeChild() has better browser support than remove(). element.remove(); element, and all its childnodes, are removed from the DOM. parentElement.removeChild(element); element...
There are several ways of getting the data that you will bind to the DOM elements. The simpler one is having your data in your script as an array... var data = [ ... ]; But D3.js allows us to load data from an external file. In this example, we will see how to properly load and deal with data fr...
You can create ACL by using Phalcon\Acl\Adapter\Memory class: $acl = new Phalcon\Acl\Adapter\Memory(); By default phalcon allows action to resource which has not been defined, to change this you can use: $acl->setDefaultAction(Phalcon\Acl::DENY); Roles can be added in two ways - using Pha...
You can allow role to access some action on resource by: $acl->allow('Administrator', 'products', 'create'); You can deny role to access some action on resource by: $acl->deny('Customer', 'categories', 'create'); You can check if role is allowed to some action on resource by using: $a...
You can add also add some more logic which has to be checked to your ACL using anonymous functions. They will be executed when using Phalcon\Acl\Adapter\Memory::allow() or Phalcon\Acl\Adapter\Memory::deny(), if they will return true, they role will be allowed to access certain action on resource. $...
By implementing Phalcon\Acl\RoleAware or Phalcon\Acl\ResourceAware you can use them as objects in Phalcon\Acl\Adapter\Memory::isAllowed(). // Create our class which will be used as roleName class UserRole implements Phalcon\Acl\RoleAware { protected $id; protected $roleName; publ...
Modifying the strings returned by the standard functions getenv(), strerror() and setlocale() is undefined. So, implementations may use static storage for these strings. The getenv() function, C11, §7.22.4.7, 4, says: The getenv function returns a pointer to a string associated with the matched...
To execute a function within a loop in node.js, it's fine to use a for loop for short loops. But the loop is long, using for loop will increase the time of processing which might cause the node process to hang. In such scenarios, you can use: asycn.times function recursiveAction(n, callback) { ...
When we want to handle array of data, its better to use async.each. When we want to perform something with all data & want to get the final callback once everything is done, then this method will be useful. This is handled in parallel way. function createUser(userName, callback) { //creat...
OpenLayers 3 or as it is referred OL-3 is a Javascript Library for web mapping, so in order to use it you'll need to add it in your html: first add the ol.css file to use the map styling of OL-3 : then add the ol.js file : you can also download OL-3 from the official site www.openlaye...
var path = "/test_javascript_upload.txt"; var content = "data to upload"; var accessToken = "<ACCESS_TOKEN>"; var uploadUrl = "https://content.dropboxapi.com/2/files/upload" var result; var xhr = new XMLHttpRequest(); xhr.onreadystatechange = fun...
To Retrieve URL path in STATIC BLOCK Or CMS pages To get SKIN URL {{skin url=’images/sampleimage.jpg’}} To get Media URL {{media url=’/sampleimage.jpg’}} To get Store URL {{store url=’mypage.html’}} To get Base URL {{base url=”}} TO Retrieve URL path in PHTML Not secure Skin URL &...

Page 718 of 1336