Skip to content

Instantly share code, notes, and snippets.

View GabeStah's full-sized avatar

Gabe Wyatt GabeStah

View GitHub Profile
@GabeStah
GabeStah / paperclips.js
Last active August 15, 2018 05:38 — forked from cowboy/paperclips.js
Universal Paperclips: stuff to paste into console http://www.decisionproblem.com/paperclips
_toggles = {}
makeToggle = (id, fn, delay = 100) => {
const elem = document.querySelector('#' + id)
elem.onclick = () => {
if (_toggles[id]) {
clearInterval(_toggles[id])
_toggles[id] = null
} else {
_toggles[id] = setInterval(() => elem.disabled || fn(), delay)
}
// ==UserScript==
// @name Antimatter M-key Spammer
// @namespace https://gist.github.com/GabeStah/83466ed568649e1bf711fb0f451932ff
// @updateURL https://gist.github.com/GabeStah/83466ed568649e1bf711fb0f451932ff
// @downloadURL https://gist.github.com/GabeStah/83466ed568649e1bf711fb0f451932ff
// @version 0.27
// @description try to take over the world!
// @author You
// @match http://ivark.github.io/
// @grant none
@GabeStah
GabeStah / file.md
Last active March 28, 2019 16:33
Dgraph Child Node Query

Schema

The relevant schema:

<hashtag.hashtag>: string @index(exact, fulltext) @count .
<hashtag.indices>: [int] .
<tweet.hashtag>: uid @count .
<tweet.text>: string @index(exact, fulltext) @upsert @count .
@GabeStah
GabeStah / index.user.js
Last active January 25, 2024 20:58
the-idle-class-helper
// ==UserScript==
// @name The Idle Class Helper
// @namespace http://tampermonkey.net/
// @version 0.1.5
// @description try to take over the world!
// @author Gabe Wyatt <[email protected]>
// @match https://www.smallgraygames.com/the-idle-class
// @grant none
// @require https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js
// @updateURL https://gist.githubusercontent.com/GabeStah/a687f64db4bb844a4aadd367052bf152/raw/index.user.js