Use process.stdout to "rewrite" stdout and simulate a loader.
- Dots - basic ... loader
- Stars - animate an 8 frame circle loader
- Progress Bar - simulate % completion
const Canvas = require("./"); | |
const canvas = new Canvas(); | |
c = canvas.getContext("2d"); | |
const ROWDATA = [213, 398, 12, 334, 102, 499, 60, 230, 222]; | |
function draw() { | |
let cols = 6; | |
let rows = 10; |
%Y%m%d => 20071119 Calendar date (basic) | |
%F => 2007-11-19 Calendar date (extended) | |
%Y-%m => 2007-11 Calendar date, reduced accuracy, specific month | |
%Y => 2007 Calendar date, reduced accuracy, specific year | |
%C => 20 Calendar date, reduced accuracy, specific century | |
%Y%j => 2007323 Ordinal date (basic) | |
%Y-%j => 2007-323 Ordinal date (extended) | |
%GW%V%u => 2007W471 Week date (basic) | |
%G-W%V-%u => 2007-W47-1 Week date (extended) | |
%GW%V => 2007W47 Week date, reduced accuracy, specific week (basic) |
import java.sql.*; | |
import java.util.*; | |
class Main { | |
public static void main(String[] args) { | |
try { | |
// Connections |
# This file has been auto-generated by i3-config-wizard(1). # It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout some time, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# i3 config file (v4) | |
# | |
# Please see https://i3wm.org/docs/userguide.html for a complete reference! |
## | |
# Traverse and rename files | |
# | |
# - needs cleanup | |
require 'shellwords' | |
path = "src/assets/images/catalog" | |
folders = Dir.entries(path) | |
set -e; | |
# Options | |
#====================================== | |
# Warnings cause build failures | |
# if CI=true. | |
export CI=false | |
PROFILE=default |
#!/bin/bash | |
apt-get update && apt-get upgrade -y | |
apt-get install -y vim nmap curl wget build-essential nginx zsh | |
mkdir /home/sysadmin | |
cat > /home/sysadmin/.zshrc <<EOF | |
setopt promptsubst |
# Download keys from HD | |
gpg --import secure@igolden.pubkey secure@igolden.privkey |
#!/usr/bin/env bash | |
## | |
# bin/run | |
# author: Ian Golden <ian@iangolden.com> | |
# | |
# | |
# Simple bash script to wrap the docker-compose run | |
# prefix for running commands in a dockerized rails | |
# setup. prefixes with docker-compose run bundle |