I hereby claim:
- I am boppreh on github.
- I am boppreh (https://keybase.io/boppreh) on keybase.
- I have a public key ASBSbxSUYkYsfpiSezT6HRL-HaEFI6Zla-g5rH8sYtEFWAo
To claim this, I am signing this object:
import sys | |
import keyboard | |
import pickle | |
import os | |
if len(sys.argv) == 1: | |
filename = input('Input filename to save/load events: ') | |
else: | |
filename = sys.argv[1] |
let me = Players.getMe(); | |
let mult = 1000; | |
(function(updateNameplate) { | |
me.__proto__.updateNameplate = function() { | |
let ret = updateNameplate.apply(this, arguments); | |
this.sprites.flag.scale.set(0.2, 0.2); | |
if (this == me) { | |
this.sprites.flag.position.set(me.pos.x, me.pos.y); | |
return ret; | |
} |
I hereby claim:
To claim this, I am signing this object:
def make(goal, book, pantry, costs): | |
def guess(steps, required_ingredients): | |
if all(pantry.count(ingredient) >= required_ingredients.count(ingredient) for ingredient in required_ingredients): | |
yield tuple(sorted(required_ingredients)), steps | |
for ingredient in set(required_ingredients) & set(book): | |
new_required_ingredients = required_ingredients + book[ingredient] | |
new_required_ingredients.remove(ingredient) | |
yield from guess([ingredient] + steps, new_required_ingredients) | |
yield from guess([goal], book[goal]) |
golden_ratio = 0x9E3779B9 | |
max_int = 2**32 - 1 | |
def rotate_left_5(value): | |
return ((value << 5) | (value >> 27)) & max_int | |
def add_to_hash(hash_value, value): | |
return (golden_ratio * (rotate_left_5(hash_value) ^ value)) & max_int | |
def hash_simple(url): |
import subprocess | |
import collections | |
Interface = collections.namedtuple('Interface', 'name description subnet_mask ipv4_addresses ipv4_gateway ipv6_addresses ipv6_gateway dhcp_server dns_servers') | |
def parse_ipconfig(): | |
""" | |
Parses results from ipconfig. PowerShell has more structured functions, but | |
they don't serialize properly | |
(https://stackoverflow.com/questions/69997138/serialization-differences-between-powershells-format-list-and-convertto-json). |
var oldOnKeyDown = window.onkeydown | |
var canvas = document.getElementById('canvas'); | |
var oldMouseMove = canvas.onmousemove | |
canvas.onmousemove = null; | |
var pressedKeys = {} | |
window.onkeydown = function (f) { | |
pressedKeys[f.keyCode] = 1; | |
oldOnKeyDown(f); | |
updateKey(); |
# Save to C:\Users\{USER}\AppData\Roaming\Mozilla\Firefox\Profiles\{PROFILE_NAME}\chrome\userContent.css | |
# And enable "toolkit.legacyUserProfileCustomizations.stylesheets" on about:config | |
@-moz-document domain(www.youtube.com) | |
{ | |
a:visited { | |
color: grey !important; | |
} | |
} |
# Runs Grey Goo ascensions with no input required. Just run this script once a day and it'll do some basic farming (11-leaf clovers, eating fortune cookies, etc) and reincarnate in the same path when possible. | |
void do_jobs() { | |
# Spend time doing Jobs Boards adventures. Not very rewarding, but | |
# levels us up enough to cast daily skills and gives some pocket change. | |
if (my_adventures() >= 10) { | |
visit_url("place.php?whichplace=town&action=town_oddjobs"); | |
while (my_adventures() >= 10) { | |
run_choice(985, "pwd&option=3"); | |
} |
# -- coding: utf-8 -- | |
from win32api import * | |
from win32gui import * | |
import win32con | |
import sys, os | |
import struct | |
import time | |
class WindowsBalloonTip: |