Skip to content

Instantly share code, notes, and snippets.

@castdrian
castdrian / main.css
Last active June 27, 2023 11:38
vencord quickcss
/* gradient message bubbles */
:root{
--normal-chat-box: 232 23% 46%;
--replying-chat-box: 199 66% 69%;
--mentioned-chat-box: 21 86% 73%;
--background-message-hover: none !important;
--background-mentioned: none !important;
--background-mentioned-hover: none !important;
--background-message-highlight: none !important;
@castdrian
castdrian / fetchBulba.mjs
Created December 14, 2022 10:32
deno run --allow-net --allow-write fetchBulba.mjs
import { DOMParser } from 'https://deno.land/x/deno_dom/deno-dom-wasm.ts';
async function fetchMonURLs(MON_URL) {
const res = await fetch(MON_URL);
const text = await res.text();
// get the div with the id "mw-pages"
const doc = new DOMParser().parseFromString(text, 'text/html');
const div = doc.getElementById('mw-pages');
import json
import re
import requests
import bs4
GEN_IX_URL = 'https://bulbapedia.bulbagarden.net/wiki/Category:Generation_IX_Pok%C3%A9mon'
def fetch_mon_urls():
"""Fetch all the urls for the mons."""
res = requests.get(GEN_IX_URL)
@castdrian
castdrian / keybase.md
Created March 24, 2022 16:32
keybase

Keybase proof

I hereby claim:

  • I am castdrian on github.
  • I am castdrian (https://keybase.io/castdrian) on keybase.
  • I have a public key ASAnbycs1-rDkW-TIZGrKyBYir9DzZvrUNDeESMuN6N3BQo

To claim this, I am signing this object:

#include <boost/iostreams/device/mapped_file.hpp>
#include <boost/algorithm/string.hpp>
#include <algorithm>
#include <iostream>
#include <cstring>
#include <inttypes.h>
/***** TAKEN AND ADAPTED FROM HACTOOL SOURCE CODE - BEGIN *****/
#define MAGIC_PFS0 0x30534650