This file contains 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 objectFromEntries = entries => [...entries] | |
.reduce((obj, [key, val]) => ({ ...obj, [key]: val }), {}) | |
const formToObject = form => objectFromEntries(new FormData(form).entries()) |
This file contains 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
/* eslint-disable no-console */ | |
const chalk = require('chalk'); | |
exports.log = { | |
info(...args) { | |
console.log(chalk.blue(...args)); | |
}, | |
success(...args) { | |
console.log(chalk.green(...args)); | |
}, |
This file contains 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
call plug#begin('~/.vim/plugged') | |
Plug 'scrooloose/nerdTree' | |
Plug 'mattn/emmet-vim' | |
Plug 'tpope/vim-surround' | |
Plug 'bling/vim-airline' |
This file contains 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 compose = (...fns) => x => fns.reduceRight((y, f) => f(y), x); | |
const trace = label => value => { | |
console.log(`${ label }: ${ value }`); | |
return value; | |
}; | |
const g = n => n + 1; | |
const f = n => n * 2; | |
/* | |
Note: function application order is | |
bottom-to-top: |
This file contains 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 gramma = require("../src/index") | |
console.log("ok!") | |
gramma.check("I like making mistkaes!").then((response) => { | |
console.log(response) | |
}) |
This file contains 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
________ | |
/ _____/___________ _____ _____ _____ | |
/ \ __\_ __ \__ \ / \ / \\__ \ | |
\ \_\ \ | \// __ \| Y Y \ Y Y \/ __ \_ | |
\______ /__| (____ /__|_| /__|_| (____ / | |
\/ \/ \/ \/ \/ |
This file contains 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 fs = require('fs') | |
const fileA = JSON.parse(fs.readFileSync(process.argv[2]).toString()) | |
const fileB = JSON.parse(fs.readFileSync(process.argv[3]).toString()) | |
const diffs = fileB.results.map((resultB) => { | |
const oldResult = fileA.results.find( | |
(resultA) => resultA.name === resultB.name, | |
) |
This file contains 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
Spawned VM, initial state: | |
{ inputs: [ 0 ], outputs: [], phaseSettings: [] } | |
[0]-------------------------------------------------- | |
Op: INPUT | Pointer: 0 | Rel base: 0 | |
Params: | |
Save to: |
This file contains 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
. . . . . . . . . . . . . . . . . . . . . . . . . . . . # . . . . . . . . . . . . . . . . . . . . . . | |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . # . . . . . . . . . . . . . . . . . . . . . . | |
. . . . . . . . . . # # # # # # # . . . . . . . . . . . # . . . . . . . . . . . . . . . . . . . . . . | |
. . . . . . . . . . # . . . . . # . . . . . . . . . . . # . . . . . . . . . . . . . . . . . . . . . . | |
. . . . . . . . . . # . . . . . # . . . . . . . . . . . # . . . . . . . # # # # # # # # # # # . . . . | |
. . . . . . . . . . # . . . . . # . . . . . . . . . . . # . . . . . . . # . . . . . . . . . # . . . . | |
. . . . . . . . . . # . . . . . # . . . . . . . . . . . # # # # # # # # # # # # # . . . . . # . . . . | |
. . . . . . . . . . # . . . . . # . . . . . . . . . . . . . . . . . . . # . . . # . . . . . # . . . . | |
. . . . . . . . . . # . . . . . # . . . . . # # # # # # # # # # # # # . # . . . # . . . . . # . . . . | |
. . . . . . . . . . # . . . . . # . . . . . # . . . . . . . . . . . # . # . . . # . . . . . # . . |
This file contains 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
M a i n : | |
F u n c t i o n A : | |
F u n c t i o n B : | |
F u n c t i o n C : | |
C o n t i n u o u s v i d e o f e e d ? |
OlderNewer