Skip to content

Instantly share code, notes, and snippets.

Matt Braddock slashinfty

Block or report user

Report or block slashinfty

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View sml2tiles.lua
local i = 0
local cx = 0
local cy = 0
local p1_cx = 0
local p1_cy = 0
local p2_cx = 0
local p2_cy = 0
local drawn = 0
function drawTile(x, y)
slashinfty / racetime.js
Last active Jun 1, 2020
Are you in a race? (node.js)
View racetime.js
const fetch = require('node-fetch');
module.exports = {
getLink: async function(client, channel) {
const siteRoot = '';
const raceSearch = await fetch(`${siteRoot}/races/data`);
const races = await raceSearch.json();
if (races.races.length === 0) client.say(channel, 'No active races');
else {
let foundRace = null;
slashinfty / copy-meet-chat.js
Last active Apr 21, 2020
Get a list of users who have sent a chat message in a Google Meet
View copy-meet-chat.js
// To run (in Chrome):
// Press F12 to open Developer Tools
// Click the "Console" tab
// Copy and paste the code below
function copyToClipboard(str) {
var tempInput = document.createElement("input"); = "position: absolute; left: -1000px; top: -1000px";
tempInput.value = str;
View giphy-download.js
// ==UserScript==
// @name Giphy Download GIF
// @version 1.0.1
// @description Allows you to download GIFs direcly from GIPHY
// @author slashinfty (originally by Yoshitura)
// @match https://**
// @match http://**
// @grant none
// @run-at document-end
// ==/UserScript==
slashinfty / .bash_aliases
Last active Mar 17, 2020
Collection of various hacky bash functions
View .bash_aliases
# quick apt commands
alias upd='sudo apt update && sudo apt list --upgradable'
alias upg='sudo apt upgrade -y && sudo apt autoremove -y'
alias ins='sudo apt install'
alias prg='sudo apt purge'
alias avail='apt policy'
# adding applications to dmenu
# first parameter: name of entry
# second parameter (for add): command to launch application
slashinfty / .bash_stimer_alias
Last active Dec 28, 2019 — forked from lillesvin/
Command line split timer - set up as an alias to easily run - removed text pipe option due to poor performance with obs
View .bash_stimer_alias
alias stimer='shplit'
function shplit() {
function format_duration {
printf "%.2f" $1
slashinfty /
Last active Dec 7, 2019
Shell script for rolling dice (#d#+#)
#! /bin/bash
if [[ $# -lt 1 ]]; then
echo "missing argument"
exit 1
while [[ $1 ]]
slashinfty / InputPianoRoll.lua
Last active Jul 28, 2019
Create a "piano roll" of inputs on BizHawk screen to right of GB game
View InputPianoRoll.lua
local ScriptInfo = {"Input Piano Roll","by dadinfinitum","v0.2","28th Jul 2019",}
local inputobj = {[0]="Up","Down","Left","Right","Start","Select","B","A"}
local display = {Up="U",Down="D",Left="L",Right="R",Start="S",Select="s",B="B",A="A"}
function text(x,y,text,color)
slashinfty / tex2pdf.bat
Last active Dec 27, 2019
A Windows batch file for simple LaTeX PDF compiling with clean up
View tex2pdf.bat
rem this batch file compiles all tex files to pdf files in the folder this file is in
for %%i in (*.tex) do (if not exist "%%~ni.pdf" xelatex "%%i")
rem this will delete any extraneous files from the compilation process
del *.log && del *.aux
rem this will delete original tex files and leave only pdf files - delete rem below if you want to enable
rem del *.tex
slashinfty /
Last active May 27, 2020
Help document for my Twitch bot.


Commands for everyone

!sml2 race

Get a random seed with common flags. Add +dx to the end if you want to race a DX seed.

!sml2 hard

You can’t perform that action at this time.