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
// Constant Amortization System for HP12C (Platinum) | |
// Author: Henrique Gogó ([email protected]) | |
// | |
// Instructions: enter n, i and PV values and set FV as 0. | |
// Set register 9 if you want to get an specific payment number. | |
// | |
// After program ends, the result saved in registers will be: | |
// X: current payment value | |
// FV: remaining amount to pay | |
// PMT: amortization value (fixed) |
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
qemu-img create -f qcow2 "$@" 80G |
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
let recognition = new webkitSpeechRecognition(); | |
recognition.lang = 'pt-BR'; | |
recognition.onresult = ({ results }) => { | |
const transcript = results[0][0].transcript; | |
speechSynthesis.speak(new SpeechSynthesisUtterance(transcript)); | |
} | |
recognition.start(); |
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
Show hidden characters
{ | |
"env": { | |
"browser": true, | |
"commonjs": true, | |
"es6": true, | |
"node": true | |
}, | |
"extends": [ | |
"eslint:recommended", | |
"plugin:jest/recommended", |
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
function type() { | |
for (var i = 0; i < arguments.length; i++) { | |
if (arguments[i] !== arguments[++i].constructor) throw new Error('Type Error'); | |
} | |
return arguments[1]; | |
} | |
/* | |
type( | |
String, this.name = "Henrique", |
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
# Create a docker image with env var DISPLAY=:0 | |
# Save this image with docker save > firefox.tar | |
# Create this shell script in the same folder of firefox.tar | |
BASEDIR=$(dirname $(readlink -f "$0")) | |
docker load < $BASEDIR/firefox.tar | |
docker run --rm --net host -v $BASEDIR:/home/user firefox |
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
#ifndef COOL_H | |
#define COOL_H | |
#include <stdlib.h> | |
typedef struct object { | |
char *value; | |
void (*set)(); | |
char* (*get)(); | |
} object; |
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/nvlc --no-video --global-key-faster Ctrl+] --global-key-slower Ctrl+[ --global-key-play-pause Ctrl+p $1 |
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/python | |
from gi import require_version | |
require_version('Gtk', '3.0') | |
require_version('WebKit2', '4.0') | |
from gi.repository import Gtk, WebKit2, Gdk | |
Gtk.init() | |
win = Gtk.Window() |
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
browser w3m | |
# Newsboat colour scheme to work with the Nord palette | |
# from Arctic Studios - https://github.com/arcticicestudio/nord | |
# Tested with the iTerm2 Nord terminal colour scheme | |
# https://github.com/arcticicestudio/nord-iterm2 | |
# though should work with any terminal using the palette | |
color background color236 default | |
color listnormal color248 default |