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
(async () => { | |
year=2023 | |
username = 'hikaru' | |
for(var month=1; month<=12; month++) { | |
let url = `https://api.chess.com/pub/player/${username}/games/${year}/${month}/pgn` | |
response = await fetch(url) | |
const bodyText = await response.text(); | |
const blob = new Blob([bodyText], { type: 'text/plain' }); | |
const a = document.createElement('a'); | |
a.style.display = 'none'; |
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
pacman -Qi | awk '/^Name/{name=$3} /^Installed Size/{print name " : " $4 $5}' | sort -h -k 3 |
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
:root { | |
--body-bg: #1e1e1e !important; | |
--nav-tooltip-text: white !important; | |
--nav-text: white !important; | |
--up-black: white !important; | |
--tab-active-bg-color: white !important; | |
--bg-inverse: #1e1e1e !important; | |
--skill-bg: #1e1e1e !important; | |
--skill-color: white !important; | |
--nav-dropdown-link-text: black; |
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
let stop = false | |
let amount = 5 | |
let delay = 10 | |
function pageScroll() { | |
window.scrollBy(0, amount); | |
if(!stop) | |
scrolldelay = setTimeout(pageScroll,delay); | |
} |
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
setTimeout( | |
function(){ | |
var bad_banner; | |
do { | |
bad_banner = document.querySelector('#cookie-banner-lgpd') | |
}while(!bad_banner); | |
bad_banner.remove() | |
document.querySelector('#app > div > div > div > header').remove().remove() | |
}, 1000) |
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 python | |
from distutils.spawn import find_executable | |
import argparse | |
import os | |
import psutil | |
import requests | |
import signal | |
import subprocess | |
import sys | |
import telepot |
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 python | |
from bs4 import BeautifulSoup | |
import requests | |
SIN_URL = 'https://www.sinonimos.com.br/' | |
ANT_URL = 'https://www.antonimos.com.br/' | |
def main(palavra): | |
sess = requests.session() |
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 python | |
from bs4 import BeautifulSoup | |
import requests | |
import string | |
import json | |
base_url = 'http://www.portaldalinguaportuguesa.org' | |
syllables = base_url + '/index.php?action=syllables&act=list&letter=' | |
session = requests.session() | |
save_path = 'palavras-divisao-silabica.json' |
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 python2 | |
# original author: jason moiron | |
# http://jmoiron.net/blog/finding-images-binary-file-w-python/ | |
chunk = 1048576 * 4 | |
# http://www.obrador.com/essentialjpeg/headerinfo.htm | |
jfif_id = 'JFIF\x00' | |
diffie_quant_marker = '\xff\xdb' | |
diffie_huffman_marker = '\xff\xc4' | |
frame_marker = '\xff\xc0' |
NewerOlder