Use it like:
import typeCheck from './typeCheck';
/**
* @name round
* @description Write a function that round a number (`n`) to given decimal places.
*| module.exports = { | |
| config: { | |
| // default font size in pixels for all tabs | |
| fontSize: 24, | |
| // font family with optional fallbacks | |
| fontFamily: '"Fira Code", Menlo, "DejaVu Sans Mono", "Lucida Console", monospace', | |
| // terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk) | |
| cursorColor: '#1df9ca', |
| <?php | |
| /** | |
| * Ranking Library | |
| * contains alogrithms for story ranking | |
| * Basically a PHP Implementation of reddits algorithms | |
| * | |
| * @author Lucas Nolte <lnolte@i.biz> | |
| * @since 0.1 | |
| * @package Polska Wiadomosc | |
| * @subpackage Libraries |
| // @author: Rawnly | |
| // @version: 1.0.0 | |
| // @url: https://rawnly.com | |
| function countDown(id, date = "Jan 5 2018") { | |
| var int = setInterval(function() { | |
| // Get todays date and time | |
| var now = new Date().getTime(); | |
| // Find the distance between now an the count down date |
| cd ~; | |
| curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh; | |
| sudo bash nodesource_setup.sh; | |
| sudo apt-get install nodejs; | |
| npm i -g yarn |
| # What files or folders to take backup of. | |
| backup_folder="/var/www/federicovitale.me"; | |
| # Delete modules folders | |
| rm -rf "$backup_folder/node_modules"; | |
| rm -rf "$backup_folder/static/bower"; | |
| day=$(date +%d%m%y); | |
| hostname=$(hostname -s); | |
| archive_file="$hostname-$day.tar.gz"; |
| const got = require('got'); | |
| const chalk = require('chalk'); | |
| (async () => { | |
| console.clear(); | |
| const [username, password] = process.argv.splice(2); | |
| if ( username.includes('-') ) { | |
| const flag = username.replace(/\-+/, ''); |
| function webserver { | |
| case "$1" in | |
| "check") | |
| nginx -t | |
| ;; | |
| "stop"|"start"|"restart"|"status") | |
| systemctl $1 nginx; | |
| ;; | |
| *) | |
| echo "Usage:\n $ $0 {start|stop|restart|check|status}"; |