Skip to content

Instantly share code, notes, and snippets.

@ElAcechador
ElAcechador / e6ng-openapi.yaml
Last active May 4, 2020 00:35
OpenAPI definitions for zwagoth/e621ng
openapi: 3.0.0
info:
title: e621 API
version: 1.0.0
description: |
e621 offers a simple API to make scripting easy. All you need is a way to GET and POST to URLs. The ability to parse JSON or XML responses is nice, but not critical. The simplicity of the API means you can write scripts using JavaScript, Perl, Python, Ruby, even shell languages like bash or tcsh.
Changes
====
There are several changes to the API:
@ElAcechador
ElAcechador / background.js
Last active December 9, 2019 05:27
Decode Doctor Helper, a Firefox-only webextension meant to help debugging corrupted video and audio files. It just enables the internal DebugDoctor logging mechanism and then allows you to print the logs. Use this in case you get a NS_ERROR_DOM_MEDIA_FATAL_ERR from MediaDecoderStateMachine or something similar and need to figure out why it's hap…
browser.menus.create({
id: "decode-doctor",
// Decode Doctor is the actual name of the internal logging system
title: "Enable Decode Doctor",
type: "normal",
contexts: ["video", "audio"],
});
browser.menus.create({
id: "decode-doctor-log",
@ElAcechador
ElAcechador / test.md
Created March 18, 2017 20:19
Proof of concept for a markdown-based interactive text game using content from Trials in tainted space

Choose dat Gobbo costume

yeild payment
name HOLIDAY
bust HOLIDAY
author Adjatha
@ElAcechador
ElAcechador / FoEListEffects.js
Created May 2, 2016 20:08
JS script for Fall of Eden that lists the effects of all TF items
var FuncCatalog = (_.invert(_.pickBy(TF.ItemEffects, function(val){return typeof val === "function"})));
for(var item in _.pickBy(Items, function(value){return value instanceof TFItem})){
console.log(Items[item].name);
if (!Items[item].effects) {
console.log("\t" + "Not defined as an effect list");
}
Items[item].effects.forEach(function(effect){
var effectLine = "\t";