Underscore example:
_.each([1, 2, 3], function(num) { alert(num); });
/// Original C++ implementation found at http://www.wilmott.com/messageview.cfm?catid=10&threadid=38771 | |
/// C# implementation found at http://weblogs.asp.net/esanchez/archive/2010/07/29/a-quick-and-dirty-implementation-of-excel-norminv-function-in-c.aspx | |
/* | |
* Compute the quantile function for the normal distribution. | |
* | |
* For small to moderate probabilities, algorithm referenced | |
* below is used to obtain an initial approximation which is | |
* polished with a final Newton step. | |
* | |
* For very large arguments, an algorithm of Wichura is used. |
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |
//////////////////////////////////////////////////////////////////////////////// | |
// | |
// BUILT BY EDGAR | |
// | |
// Clock.js | |
// | |
// http://builtbyedgar.com/ | |
// https://twitter.com/BuiltByEdgar | |
// https://github.com/BuiltByEdgar | |
// |
// From http://stackoverflow.com/questions/14850511/js-matrix-multiplication-issue | |
function multiplyMatrix(m1, m2) { | |
var result = []; | |
for(var j = 0; j < m2.length; j++) { | |
result[j] = []; | |
for(var k = 0; k < m1[0].length; k++) { | |
var sum = 0; | |
for(var i = 0; i < m1.length; i++) { | |
sum += m1[i][k] * m2[j][i]; | |
} |
(function() { | |
var CSSCriticalPath = function(w, d, opts) { | |
var opt = opts || {}; | |
var css = {}; | |
var pushCSS = function(r) { | |
if(!!css[r.selectorText] === false) css[r.selectorText] = {}; | |
var styles = r.style.cssText.split(/;(?![A-Za-z0-9])/); | |
for(var i = 0; i < styles.length; i++) { | |
if(!!styles[i] === false) continue; | |
var pair = styles[i].split(": "); |
{ | |
"keys": ["tab"], | |
"command": "expand_abbreviation_by_tab", | |
// put comma-separated syntax selectors for which | |
// you want to expandEmmet abbreviations into "operand" key | |
// instead of SCOPE_SELECTOR. | |
// Examples: source.js, text.html - source | |
"context": [ | |
{ |
As of 20/10/2017, a release file for Ubuntu 17.10 Artful Aardvark is not available on Download Docker.
If you are used to installing Docker to your development machine with get-docker
script, that won't work either. So the solution is to install Docker CE from the zesty
package.
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -