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
var Jimp = require('jimp'); | |
const fileName = process.argv[2]; | |
const width = process.argv[3]; | |
const height = process.argv[4]; | |
Jimp.read(fileName) | |
.then(photo => { | |
let colours = {}; | |
for (let x = 0; x < width; x++) { |
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 wordList = { | |
sacrilege: {popularity: 0.5207411547}, | |
sarcasm: {popularity: 0.1913595276}, | |
said: {popularity: 0.736293578}, | |
sardine: {popularity: 0.2439570583}, | |
sars: {popularity: 0.6371759558}, | |
saw: {popularity: 0.1695272778}, | |
say: {popularity: 0.8312312658}, | |
scare: {popularity: 0.3623531581}, |
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
<!DOCTYPE NETSCAPE-Bookmark-file-1> | |
<!-- This is an automatically generated file. | |
It will be read and overwritten. | |
DO NOT EDIT! --> | |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> | |
<TITLE>Bookmarks</TITLE> | |
<H1>Bookmarks</H1> | |
<DL><p> | |
<DT><H3 ADD_DATE="1458818517" LAST_MODIFIED="1528349402" PERSONAL_TOOLBAR_FOLDER="true">Bookmarks bar</H3> | |
<DL><p> |