This file contains 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
{ | |
"p1Name": "Player 1", | |
"p1Team": "", | |
"p1Character": "Fox", | |
"p1Skin": "Red", | |
"p1Color": "Red", | |
"p1Score": 2, | |
"p1WL": "Nada", | |
"p2Name": "Player 2", | |
"p2Team": "Team", |
This file contains 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
# Maintainer: Bryce Kabat <brycekabat@onyxazryn.com> | |
pkgname="trilium-bin" | |
pkgver=0.63.3 | |
pkgrel=1 | |
pkgdesc="A hierarchical note taking application built on modern technologies." | |
depends=('libxss' 'nss' 'gtk3' 'alsa-lib') | |
arch=('x86_64') | |
url="https://github.com/zadam/trilium" | |
license=('AGPL3') | |
source=("https://github.com/zadam/trilium/releases/download/v$pkgver/trilium-linux-x64-$pkgver.tar.xz") |
This file contains 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
""" | |
how many valid answers are there on this "Math Spinner?" | |
https://i.imgur.com/HYiaxUN.jpeg | |
""" | |
nums = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | |
operators = "+-*" | |
# find all valid | |
tot = 0 | |
valid = 0 |
This file contains 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
a = ""; | |
for (const i of document.querySelectorAll(".key-revealed-container")) { | |
a += i.firstElementChild.getAttribute("value") + "\n"; | |
} | |
console.log(a); |
This file contains 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
""" | |
decompress files.tar.zst to files.tar | |
""" | |
import zstandard as zstd | |
your_filename = "files.tar.zst" | |
with open(your_filename, "rb") as f: | |
data = f.read() | |
dctx = zstd.ZstdDecompressor() |
This file contains 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/env python3 | |
""" | |
#__PUSH__# gist -u 8a7af528fdccba68d53b912315f98534 #__file__# | |
""" | |
from subprocess import check_output | |
import os | |
import time | |
VLC_CONFIG_PATH = os.path.join( |
This file contains 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
This file helps you mute every discord channel in your account | |
you have to run it in the developer console on the web client | |
follow the instructions below. this is tested on firefox and chrome. | |
1. open the discord webapp at https://discord.com/channels/@me | |
2. manually expand all server folders | |
(note any servers inside collapsed server folders will not be modified, this can be useful for leaving certain groups of servers unmodified) | |
3. open browser network inspector | |
4. right click on a sever icon | |
5. (un)mute a server |
This file contains 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
Van Halen 3678352 Los Angeles | |
Metallica 3578022 San Francisco | |
Red Hot Chili Peppers 3519678 Los Angeles | |
Eagles (band) 3216278 Los Angeles | |
Beastie Boys 3038412 New York City | |
Wu-Tang Clan 2910395 New York City | |
R.E.M. 2762807 Athens, Georgia | |
Lynyrd Skynyrd 2682106 Jacksonville, Florida | |
Foo Fighters 2648808 Seattle | |
Backstreet Boys 2641526 Orlando, Florida |
This file contains 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
""" | |
scraped from here: | |
https://en.wikipedia.org/wiki/Category:Musical_groups_by_city_in_the_United_States | |
TODO | |
[x] get cities from wikipedia | |
[x] get bands from each city | |
- there's subcollections (a band in a subcoll is not featured in the parent) | |
- try to identify next_pages add to Q. bfs style | |
[x] turn cities into coordinates city_to_coordinates |
This file contains 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/env python3 | |
"""invoke magic spells from magic words inside a file | |
magic words are defined thusly: (must be all caps) | |
#__MAGICWORD__# echo 'followed by a shell command' | |
put something of that format inside a file to set up running that command | |
additionally, #__file__# will be substituted with the path of the file this is called on |
NewerOlder