I hereby claim:
- I am sandro-pasquali on github.
- I am spasquali (https://keybase.io/spasquali) on keybase.
- I have a public key ASBZw2sR2JegCq_zjCT1MIgPQJdQz62XpRCZMM9nYfq5DQo
To claim this, I am signing this object:
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Missile Command</title> | |
| <style> | |
| html, body { | |
| height: 100%; |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Title</title> | |
| <style> | |
| body { | |
| margin: 0; | |
| padding: 10px; | |
| } |
I hereby claim:
To claim this, I am signing this object:
| // https://github.com/AlessandroMinoccheri/human-names/blob/master/data/female-human-names-en.json | |
| let nlp = require('compromise'); | |
| let results = [ | |
| "Aaliyah", | |
| "Aarushi", | |
| "Abagail", | |
| "Abbey", | |
| "Abbi", |
| function getAccessibleColor(rgb) { | |
| let [ r, g, b ] = rgb; | |
| let colors = [r / 255, g / 255, b / 255]; | |
| let c = colors.map((col) => { | |
| if (col <= 0.03928) { | |
| return col / 12.92; | |
| } | |
| return Math.pow((col + 0.055) / 1.055, 2.4); |
| function copyStyles(sourceDoc, targetDoc) { | |
| Array.from(sourceDoc.styleSheets).forEach(styleSheet => { | |
| if (styleSheet.cssRules) { // for <style> elements | |
| const newStyleEl = sourceDoc.createElement('style'); | |
| Array.from(styleSheet.cssRules).forEach(cssRule => { | |
| // write the text of each rule into the body of the style element | |
| newStyleEl.appendChild(sourceDoc.createTextNode(cssRule.cssText)); | |
| }); |
| /* | |
| * Inspired by: http://stackoverflow.com/questions/4360060/video-streaming-with-html-5-via-node-js | |
| */ | |
| var http = require('http'), | |
| fs = require('fs'), | |
| util = require('util'); | |
| http.createServer(function (req, res) { | |
| var path = 'video.mp4'; |
| var fc = require('fc'); | |
| var center = require('ctx-translate-center'); | |
| var poly = require('ctx-render-polyline'); | |
| var points = require('ctx-render-points'); | |
| var bounds2 = require('2d-bounds'); | |
| var gridlines = require('ctx-render-grid-lines'); | |
| var isect = require('robust-segment-intersect'); | |
| var createSDF = require('sdf-polygon-2d'); | |
| var area = require('2d-polygon-area'); | |
| var segseg = require('segseg'); |
| // | |
| // GIFDownloader.h | |
| // TheJoysOfCode | |
| // | |
| // Created by Bob on 29/10/12. | |
| // Copyright (c) 2012 Tall Developments. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> |
#Linux - Running a Node Service (PM2) PM2 is a replacement for Forever which is used to run Node services (see http://devo.ps/blog/2013/06/26/goodbye-node-forever-hello-pm2.html). It has a number of advantages over forever: