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
| -- takes all | |
| love = { | |
| audio = { | |
| getActiveEffects = function(...) end, --Gets a list of the names of the currently enabled effects. | |
| getActiveSourceCount = function(...) end, --Gets the current number of simultaneously playing sources. | |
| getDistanceModel = function(...) end, --Returns the distance attenuation model. | |
| getDopplerScale = function(...) end, --Gets the global scale factor for doppler effects. | |
| getEffect = function(...) end, --Gets the settings associated with an effect. | |
| getMaxSceneEffects = function(...) end, --Gets the maximum number of active effects. | |
| getMaxSourceEffects = function(...) end, --Gets the maximum number of active Effects for each Source. |
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
| xmodmap -e "keycode 49 = apostrophe quotedbl bar bar bar" |
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
| #!/bin/bash | |
| # Add these lines in .bashrc and set Raspberry Pi to auto login | |
| if [ ! -f /tmp/fluidsynth-bootloaded ]; then | |
| touch /tmp/fluidsynth-bootloaded | |
| killall fluidsynth | |
| fluidsynth -a alsa -g 1 /usr/share/sounds/sf2/default-GM.sf2 -o midi.autoconnect=1 -c 4 | |
| fi |
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; |