Singular | Plural |
---|---|
Pig | Pigs |
House | Houses |
Stick | Sticks |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 chunk = (arr, n) => { | |
if(n<=0)throw new Error('First argument to splitEvery must be a positive integer') | |
var result = [],idx = 0; | |
while(idx<arr.length)result.push(arr.slice(idx,idx+=n)) | |
return result | |
} | |
const fetchProxy=()=> new Promise((resolve, reject) => { | |
const randomWait = 300*Math.random(); | |
setTimeout(() => resolve(randomWait), randomWait); | |
}); |
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
alias - 'z -' | |
alias . 'z ../' | |
alias .. 'z ../../' | |
alias ... 'z ../../../' | |
alias .... 'z ../../../../' | |
alias fn 'find -name' | |
alias bt 'source ./bootenv' | |
alias gR 'grep --color=auto -Rn' | |
alias gr 'grep --color=auto -rn' | |
alias mkcd 'mkdir -pv \!*; cd \!*' |
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
require('dotenv').config() | |
const fetch = require("node-fetch"); | |
const fs = require('fs'); | |
const distinct = (value, index, self) => { | |
return self.indexOf(value) === index; | |
} | |
function uniqueListByKey(arr, key) { | |
return [...new Map(arr.map(item => [item[key], item])).values()] |