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
#!/bin/bash | |
# Converts provided SVGs into PNGs tinted as white | |
# Usage: | |
# $ ./iconmaker.sh in/directory/ out/directory/ | |
IN_DIR=$1 | |
OUT_DIR=$2 | |
TMP_DIR=/tmp |
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
// Usage: $ node promiseRunnerExample.js <mode> | |
// Where <mode> can be one of the following: 'serie', 'parallel', 'parallelLimit' | |
const numbers = Array(50).fill(1).map((_, index) => index); | |
const getNumber = (num) => new Promise((resolve) => { | |
const delay = Math.random() * 1000; | |
const fun = () => resolve(num); | |
setTimeout(() => { | |
process.stdout.write(`${num}, `); |
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
\documentclass[a4paper, 12pt]{article} | |
\usepackage[letterpaper, margin=2cm]{geometry} | |
\usepackage[T1]{fontenc} | |
\usepackage{beramono} | |
\usepackage{listings} | |
\usepackage{xcolor} | |
\newcommand\realnumberstyle[1]{} |