Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Better Quick Stock
// @namespace http://tampermonkey.net/
// @version 0.1
// @description makes the quick stock in neopets a little bit better
// @author brunodemarchi
// @match https://www.neopets.com/quickstock.phtml*
// @grant none
// ==/UserScript==
@geo-rge-li
geo-rge-li / symderivweb.rkt
Created March 22, 2024 16:03
symderivweb.rkt
#lang web-server/insta
;;;website code
(require mzlib/string)
(struct sent (var function number point simp))
(define hist (list))
(define (start request)
(define functs
@geo-rge-li
geo-rge-li / pam.py
Created March 18, 2024 00:32
modified python 3 pam.py for howdy auth
# PAM interface in python, launches compare.py
# Import required modules
import subprocess
import os
import glob
import syslog
# pam-python is running python 2, so we use the old module here
import configparser
@geo-rge-li
geo-rge-li / NTscraper.py
Created March 11, 2023 17:31
NT Scraper Selenium
#!/usr/bin/env python
# coding: utf-8
# In[1]:
from gooey import Gooey, GooeyParser
# In[2]:
/**
* Vendor account ids are a length of 11. This function ensures that the padding of leading zeroes does not
* cause the string to exceed the length of 11 by stripping and re-adding the proper amount of zeroes.
*
* @param vendorAccountId the vendor account ID
* @return String of length 11 with the proper amount of leading zeroes
*/
public static String validateAndConvertVendorAccountId(final String vendorAccountId) {
if (vendorAccountId.length() > 11) {
final String leadingZeroesPattern = "^0+(?!$)";