Skip to content

Instantly share code, notes, and snippets.

View Santiael's full-sized avatar
🕸️

Rafael Santiago Santiael

🕸️
View GitHub Profile
@Santiael
Santiael / settings.json
Last active August 15, 2025 19:50
microsoft-terminal-config
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions": [
{
"command": {
"action": "splitPane",
"split": "left"
},
"id": "User.splitPane.left"
@Santiael
Santiael / theme.json
Created June 27, 2020 20:57
Nebula Microsoft Terminal Theme
{
"name": "Nebula",
"black": "#353551",
"red": "#E34F8C",
"green": "#97F36D",
"yellow": "#F8C275",
"blue": "#C7ADFB",
"purple": "#E752A1",
"cyan": "#24E8D8",
"white": "#FBD3E1",
@Santiael
Santiael / tetris.js
Created April 8, 2020 23:15
código de tetris criado durante a live
const canvas = document.getElementById('board');
const ctx = canvas.getContext('2d');
ctx.scale(36, 36);
const piece = {
x: 3,
y: 0,
matrix: [
[0, 0, 0],
invertPhrase = (phrase) => {
const characters = [...`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789?!,.()"`];
const invertedCharacters = [...`ɐqɔpǝⅎƃɥᴉɾʞʅɯuodbɹsʇnʌʍxʎz∀ꓭϽᗡƎᖵ⅁HIᒋꓘ⅂ꟽNOԀꝹꓤSꓕՈɅϺX⅄Z0⇂↊↋ߤ59𝘓86¿¡ʻ.)(﮼`];
const phraseArray = [...phrase];
const invertedPhrase = phraseArray.reduce((acc, cur) => {
const index = characters.indexOf(cur);
if(index < 0) return cur + acc;
@Santiael
Santiael / AutoRedeemTwitchBonus.js
Last active December 5, 2021 14:20
Copy and paste this script into the console window of your favorite stream to automatically redeem Twitch bonus points.
function AutoRedeemTwitchBonus() {
try {
const reward = document.querySelector(".claimable-bonus__icon");
if(reward) {
reward.click();
console.log(
`Reward successfully redeemed at ${new Date().toTimeString().slice(0,8)}`
);
}
} catch (error) {