Skip to content

Instantly share code, notes, and snippets.

View lambdadog's full-sized avatar

Ashlynn Anderson lambdadog

View GitHub Profile
@lambdadog
lambdadog / README.md
Last active June 18, 2022 05:29
Convenience function for using Java libraries in Grakkit

loadClasses - A function to simplify using external library JARs in Grakkit

Turns this:

const SC = {
  Socket: load('./plugins/grakkit/socketcluster-2.0.0.jar', 'io.github.sac.Socket'),
  BasicListener: load('./plugins/grakkit/socketcluster-2.0.0.jar', 'io.github.sac.BasicListener'),
  Emitter: {
 Listener: load('./plugins/grakkit/socketcluster-2.0.0.jar', 'io.github.sac.Emitter$Listener'),
@lambdadog
lambdadog / parse.py
Last active November 28, 2019 04:11
Python HTMLParser example for @Cesese
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
#
# In jurisdictions that recognize copyright laws, the author or authors
# of this software dedicate any and all copyright interest in the
# software to the public domain. We make this dedication for the benefit
{
"SKWR-RBGS": "{#alt(control(shift(j)))}",
"H-FPLS": "{#control(h)}",
"KW-FPGS": "{#control(shift(q))}",
"TPH-RBLT": "{#alt(shift(n))}",
"PW-RPLT": "{#alt(b)}",
"PH-FPLS": "{#control(m)}",
"R-RBLT": "{#alt(shift(r))}",
"PW-RPLS": "{#alt(control(b))}",
"TKPW-FPGS": "{#control(shift(g))}",
@lambdadog
lambdadog / seemoremastodon.js
Created March 4, 2018 06:17
A greasemonkey userscript (for niu.moe, but you just need to change the @include to switch that bit up) to add a "see more" arrow to statuses.
// ==UserScript==
// @name See More Mastodon
// @version 1
// @grant none
// @include https://niu.moe/*
// ==/UserScript==
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];