Skip to content

Instantly share code, notes, and snippets.

import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
import { IconDefinition } from "@fortawesome/free-solid-svg-icons"
import React, { useState } from "react"
import toast, { Toast } from "react-hot-toast"
import { UndoToast } from "./UndoToast.tsx"
interface ConfirmationButtonProps {
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void
undoCallback?: () => void
icon: IconDefinition
### Keybase proof
I hereby claim:
* I am noahkw on github.
* I am noahkw (https://keybase.io/noahkw) on keybase.
* I have a public key whose fingerprint is F387 A2E1 ABC2 3574 F937 F519 9553 39AC 998E 4282
To claim this, I am signing this object:
@noahkw
noahkw / streamable_urls.js
Created August 28, 2020 20:58
Copy paste this into your browser's console and it should spit out a file containing links to all your streamables.
function streamableUrls() {
const Http = new XMLHttpRequest();
Http.withCredentials = true;
let url = 'https://ajax.streamable.com/videos?sort=date_added&sortd=DESC&count=10000&page=1';
Http.open('GET', url);
Http.send();
Http.onreadystatechange = (e) => {
let resp = Http.responseText;
let data = JSON.parse(resp);
@noahkw
noahkw / naver_blogpost_pics.js
Created August 28, 2020 20:56
Copy paste this into your browser's console and it should spit out a file containing links to all the pictures in the blog post.
function naverUrls() {
let elements = document.getElementsByClassName("__se_link");
let out = '';
for (let e in elements) {
let cur = elements[e];
if (cur.dataset) {
data = cur.dataset['linkdata'];
parsed = JSON.parse(data);
out += parsed.src + '\n';
}
def strip_list(l):
return [x.strip() for x in l]
class DNFParser:
def __init__(self, exp):
self._exp = exp
self._parsed = self._parse_expression()
def _parse_expression(self):
Aviary Attorney
DARK SOULS™ III
Holy Potatoes! We're in Space?!
Last Day of June
Lost Castle
Splasher
Cities in Motion 2
Majesty 2 Collection
Loot Rascals
Loot Rascals Soundtrack
@noahkw
noahkw / botw on cemu.md
Last active May 15, 2023 18:34
Zelda BotW on Cemu 1.7.4c
BoldAsFont=no
Font=Source Code Pro
Columns=132
Rows=35
FontHeight=10
Transparency=off
OpaqueWhenFocused=no
CursorType=line
ForegroundColour=131,148,150
BackgroundColour=0,43,54
unbind C-b
set -g prefix C-a
bind C-a send-prefix
bind -n WheelUpPane copy-mode
# Make mouse useful in copy mode
#setw -g mode-mouse on
# Allow mouse to select which pane to use
#set -g mouse-select-pane on
alias ll="ls -la"
alias lv="livestreamer"
alias twitch="livestreamer --twitch-oauth-token SECRET"
alias ls="ls --color=auto"
LS_COLORS="di=31;1:ln=36;1:ex=31;1:*~=31;1:*.html=31;1:*.shtml=37;1"
export LS_COLORS
alias stopdb='net stop "Apache CouchDB"'
alias startdb='net start "Apache CouchDB"'