A collection of useful emojis for logging and debugging. Cheerio 🙃.
| ✔️ | success, done |
| ❌ | failure, error |
| function isInside(p, [a, b]) { | |
| return (b[0] - a[0]) * (p[1] - a[1]) > (b[1] - a[1]) * (p[0] - a[0]); | |
| } | |
| function getEdges(polygon) { | |
| let edges = []; | |
| for (let i = 0; i < polygon.length; i++) { | |
| let edge = [polygon[(i + polygon.length - 1) % polygon.length], polygon[i]]; |
| _code | _unicode-decimal | _unicode-hex | __text | |
|---|---|---|---|---|
| ALL | 76, 101, 107 | 4c, 65, 6b | Albania Lek | |
| AFN | 1547 | 60b | Afghanistan Afghani | |
| ARS | 36 | 24 | Argentina Peso | |
| AWG | 402 | 192 | Aruba Guilder | |
| AUD | 36 | 24 | Australia Dollar | |
| AZN | 1084, 1072, 1085 | 43c, 430, 43d | Azerbaijan New Manat | |
| BSD | 36 | 24 | Bahamas Dollar | |
| BBD | 36 | 24 | Barbados Dollar | |
| BYR | 112, 46 | 70, 2e | Belarus Ruble |
Here's all you have to do to add clustering to your node.js application.
cluster.js, and run cluster.js instead of server.js (or /bin/www, or whatever it's called for your project)server.js filevar cluster = require('cluster');
if (cluster.isMaster) {
// Count the machine's CPUs
var cpuCount = require('os').cpus().length;THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!