Skip to content

Instantly share code, notes, and snippets.

View B44ken's full-sized avatar

bradley B44ken

View GitHub Profile
// click checkboxes at random
const checkboxes = document.querySelectorAll('input[type=checkbox]')
checkboxes.forEach(cb => {
if(Math.random() > 0.5)
cb.click()
})
checkboxes[checkboxes.length - 1].checked = true
checkboxes[checkboxes.length - 2].checked = true
// helper stuff for filling form inputs
[
{
"atomic_number": 1,
"name": "Hydrogen",
"symbol": "H",
"block": "s",
"group_id": 1,
"period": 1,
"series": "Nonmetals",
"cas": "1333-74-0",
@B44ken
B44ken / til.ps1
Last active November 3, 2020 16:51
# god powershell scripts are ugly
function tilEnd {
$til = new-timespan -Start $(get-date) -End $([datetime]"12:25 PM")
echo "$($til.Minutes):$($til.Seconds)"
}
while(1) { tilEnd; sleep 1 }
shutdown /s
@B44ken
B44ken / proposals.py
Last active April 26, 2020 02:50
bountify.co/xt
import sys
from tika import parser
def get_content(file): # parse the file
content = parser.from_file(file)['content']
groups = content.split("-" * 105)[1:]
results = []
for group in groups:
results += [parse_group(group)]
return results
// ==UserScript==
// @name InstaHelper
// @namespace ig-help
// @version 1.0
// @description various things to make instagram better
// @author trevor
// @match https://www.instagram.com/direct/*
// ==/UserScript==
var _$ = e => document.querySelector(e)
brad:)
yah_trick
Roll a die. On 1-2, TARGET goes back to the start of your zone. 5-6, TARGET goes to before the end of it.
TARGET rolls 2 dice this turn.
TARGET skips 2 turns. PLAYER skips one.
Pick up 2 cards and play them on PLAYER instantly
TARGET and PLAYER go back to the start of their zone.
TARGET moves forward exactly 7 this turn.
If a card is played on PLAYER, ignore it and play it on the person who played the card.
The next player to roll a 6 ignores it and goes back 3.
@B44ken
B44ken / roccoQuotes.txt
Last active July 19, 2020 04:36
delicious rocco quotes
yah yah yah yah yah yah yah yah yah yah yah...
OPA!
HABBLEUGHAWUGH
*hiccup* OPA *hiccup* OPA *hiccup* OPA *hiccup* OPA *hiccup* OPA
Is this Nazi Germany?
It's Sicily, it means fuck off.
I've never jacked off!
I only ran partially naked!
I don't wanna wear underwear after a shower!
I haven't had a boner in weeks!