Skip to content

Instantly share code, notes, and snippets.

View azarmadr's full-sized avatar

Shaik Azhar Madar azarmadr

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@azarmadr
azarmadr / .aliases
Created October 29, 2021 12:03
workrc
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 \!*'
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);
});
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()]
@azarmadr
azarmadr / Three little Pigs.md
Last active July 13, 2021 16:17
Welcome file

Three Little Pigs


Singular Plural
Pig Pigs
House Houses
Stick Sticks