Skip to content

Instantly share code, notes, and snippets.

View AfkaraLP's full-sized avatar
🗺️
probably getting lost rn

AfkaraLP AfkaraLP

🗺️
probably getting lost rn
View GitHub Profile
@AfkaraLP
AfkaraLP / star_papers.js
Created May 7, 2026 22:11
ChatGPT written userscript for starring papers in localstorage and having a handy list to show your favourites
// ==UserScript==
// @name arXiv Paper Starred List
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Star arXiv papers and keep a persistent list
// @match https://arxiv.org/abs/*
// @grant GM_getValue
// @grant GM_setValue
// ==/UserScript==
@AfkaraLP
AfkaraLP / dad_jokes.nu
Last active May 7, 2026 15:38
Dump all dad jokes from icanhazdadjoke
#!/usr/bin/env nu
use std/log
mut results: list<string> = [];
mut empty_page = false;
for page in 0..100 {
mut duplicate_count = 0;
mut amount_of_jokes = 20;
try {
let response = (http get -H [Accept, application/json] https://icanhazdadjoke.com/search?page=($page)&limit=30 | $in.results | select joke)
$amount_of_jokes = ($response | length);