Skip to content

Instantly share code, notes, and snippets.

View Adjective-Object's full-sized avatar
🏠
Working from home

Max Adjective-Object

🏠
Working from home
View GitHub Profile
@Adjective-Object
Adjective-Object / github-tab-color.js
Created October 4, 2023 22:13
Tampermonkey extension for github tab color coding
// ==UserScript==
// @name Github tab-dependent icon colour
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Recolor the github favicon depending on the page category
// @author Maxwell Huang-Hobbs
// @match https://github.com/orgs/*/projects/*
// @match https://github.com/*/*/pull*
// @match https://github.com/*/*/issue*
// @icon https://github.githubassets.com/favicons/favicon-dark.png
@Adjective-Object
Adjective-Object / foundry_vtt_item_attack_macro.js
Last active February 13, 2022 20:15
Foundry VTT Attack with Item Macro
if (!window.__lastKnownValuesForMaxMacro) {
window.__lastKnownValuesForMaxMacro = {}
}
lastKnown = window.__lastKnownValuesForMaxMacro
let additionalEffects = {
sneak: {
name: "Sneak Attack",
img: "icons/skills/melee/strike-dagger-arcane-pink.webp"
},
@Adjective-Object
Adjective-Object / dominion.js
Created May 10, 2017 07:08
Get Dominion Cards
// get list of all dominion cards from http://dominion.diehrstraits.com/?set=All&f=list
copy($$(".card-row").map((e) => ({
name: e.querySelector(".card-name").innerText,
set: e.querySelector(".card-expansion").innerText,
type: e.querySelector(".card-type").innerText,
cost: e.querySelector(".card-cost").innerText,
rules: e.querySelector(".card-rules").innerText,
img: `http://dominion.diehrstraits.com/scans/${e.querySelector(".card-expansion").innerText.toLowerCase()}/${e.querySelector(".card-name").innerText.toLowerCase()}.jpg`.replace(/ /g, '')
})))
@Adjective-Object
Adjective-Object / smug.py
Last active March 29, 2017 19:20
insert transparent images into other images
from PIL import Image, ImageCms
import numpy as np
import matplotlib.pyplot as plt
import pylab
from scipy import signal, ndimage
import scipy
import os
import random
##############
#!/usr/bin/env bash
set -e
function waifu() {
current=$1
extension=$2
currentfile="img/$1.$extension"
nextfileno=$((current + 1))
let pkgs = import <nixpkgs> {};
in with pkgs; let
# build tools
dependencies = [
];
devDependencies = [
];

Keybase proof

I hereby claim:

  • I am adjective-object on github.
  • I am adjective (https://keybase.io/adjective) on keybase.
  • I have a public key whose fingerprint is 98C9 70CB F526 53F9 E72A E824 B4B2 BD63 4B1A 0408

To claim this, I am signing this object: