This file contains hidden or 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
#!/usr/bin/env bash | |
# /opt/ software update script | |
# Author: João Iacillo <joao@iacillo.dev.br> | |
# Required folders: | |
# - /opt/ - Software packages location | |
# - /opt/bin/ - Binary links to each software | |
# - /opt/bin/updates/ - update.* files that this scripts sources | |
# [update.* file example] | |
# URL="APP_LATEST_TAR_GZ_URL" |
This file contains hidden or 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
// AccurateTimer.js - By João Iacillo (Just because) | |
function Action(run, can) { | |
this.run = run; | |
this.can = can || (() => true); | |
} | |
function EveryAction(timeUnit, callback) { | |
let last; |
This file contains hidden or 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
from os import system as sys_exec | |
from platform import system as sys_name | |
from random import choice | |
words = ['banana', 'figura', 'ação', 'aventura', 'estojo', | |
'mesa', 'diversão', 'computador', 'controle', 'linha', 'teclado', | |
'animado', 'fome', 'livro', 'entretenimento', 'caderno', | |
'calculadora', 'caneta', 'fone', 'metade', 'circo', 'trabalho', | |
'porta', 'cachorro', 'gato', 'boi', 'corno', 'digital', 'sistema', |