This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const cluster = require('cluster'); | |
| const http = require('http'); | |
| const httpProxy = require('http-proxy'); | |
| const _ = require('underscore'); | |
| var numCPUs = 10; | |
| var isPort = 8080; | |
| function estimatePi() { | |
| var n = 10000000, inside = 0, i, x, y; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| --- Usare la nuova versione su https://github.com/carlok/comuni_sql | |
| --- | |
| CREATE TABLE IF NOT EXISTS regioni ( | |
| id int(11) NOT NULL auto_increment, | |
| nome varchar(100) NOT NULL, | |
| PRIMARY KEY (id) | |
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Luhn algorithm in JavaScript: validate credit card number supplied as string of numbers | |
| * @author ShirtlessKirk. Copyright (c) 2012. | |
| * @license WTFPL (http://www.wtfpl.net/txt/copying) | |
| */ | |
| var luhnChk = (function (arr) { | |
| return function (ccNum) { | |
| var | |
| len = ccNum.length, | |
| bit = 1, |
NewerOlder