Skip to content

Instantly share code, notes, and snippets.

View boisei0's full-sized avatar

Lena Derksen boisei0

View GitHub Profile
@boisei0
boisei0 / Core-Database-__init__.py
Created August 9, 2014 10:38
arcwelder core startup fix
def late_bind():
from .Actions import ActionManager, ActionTemplate
from .Data import NewProject, OpenProject, SaveProject, SaveProjectAS
from .DatabaseActions import ActorEditAction, AnimationEditAction, AnimationFrameEditAction, \
AnimationTimingEditAction, ArmorEditAction, AudioFileEditAction, ClassEditAction, CommonEventEditAction, \
DatabaseAction, EnemyActionEditAction, EnemyEditAction, EventCommandEditAction, EventConditionEditAction, \
EventEditAction, EventGraphicEditAction, EventPageEditAction, ItemEditActon, LearningEditAction, \
MapEditAction, MapInfoEditAction, MemberEditAction, MoveCommandEditAction, MoveRouteEditAction, \
SkillEditAction, StateEditAction, SystemEditAction, TableEditAction, TestBattlerEditAction, TilesetEditAction, \
TroopConditionEditAction, TroopEditAction, TroopPageEditAction, WeaponEditAction, WordsEditAction
@boisei0
boisei0 / __init__.py
Created August 25, 2014 06:46
The __init__.py file of the Pynoramio module
import requests
class PynoramioException(Exception):
pass
class Pynoramio:
def __init__(self):
self.base_url = 'http://www.panoramio.com/map/get_panoramas?order=popularity'

Keybase proof

I hereby claim:

  • I am boisei0 on github.
  • I am afelix (https://keybase.io/afelix) on keybase.
  • I have a public key ASAxv6MjijvR6fN_rK2DkqP97qFcuhT9Smwga2YP1OdkOwo

To claim this, I am signing this object:

@boisei0
boisei0 / slackdeletron_file_nuker.js
Last active December 1, 2018 17:09
Tampermonkey script to use with https://www.slackdeletron.com
// ==UserScript==
// @name Slackdeletron file nuke
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Nuke all files in any slackdeletron search...
// @author You
// @match https://www.slackdeletron.com/
// @grant none
// ==/UserScript==
@boisei0
boisei0 / tumblr_score_checker.js
Created December 4, 2018 03:47
Tampermonkey script to view flagging scores on a user's latest posts on tumbr. Usage: be logged in and go to dashboard. Type the blog name of the user you want to see in the search bar (yes very original I know 😂) and click the "check flagging scores" button. The output gets printed to your javascript console.
// ==UserScript==
// @name Tumblr score checker
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Will test posts and displays the scores for NSFW/explicit content and if they got flagged
// @author You
// @match https://www.tumblr.com/dashboard
// @grant GM_xmlhttpRequest
// @connect tumblr.com
// ==/UserScript==
@boisei0
boisei0 / tumblr_flagging_score_checker.js
Last active December 6, 2018 16:39
Tampermonkey userscript to show which of your posts got flagged. Requires you to be logged in on Tumblr and on the dashboard.
// ==UserScript==
// @name Tumblr flagging checker
// @namespace http://tampermonkey.net/
// @version 0.2.3
// @updateURL https://https://gist.githubusercontent.com/boisei0/2ea7d7145d04a1cc5864d316271d09fd/raw/tumblr_flagging_score_checker.js
// @description Will test posts and displays the scores for NSFW/explicit content and if they got flagged
// @author Lena (flight-of-the-felix.tumblr.com)
// @match https://www.tumblr.com/dashboard
// @grant GM_xmlhttpRequest
// @grant GM_addStyle
@boisei0
boisei0 / Readme.MD
Created March 7, 2019 14:15
Find latest chapter you left comments on for an AO3 fic.

Find all comments left by a specific user on a fic on ArchiveOfOurOwn

Setup instructions

  1. Install Python 3; I've used similar code on both 3.6 as well as 3.7.
  2. Install https://github.com/tryolabs/requestium.git
  3. Make sure Chrome is installed, and insert the chromedriver file in the right directory.
  4. Change the necessary configuration on the script
  5. Run the script, preferably on the Python console directly so permission for GDPR can be given manually if relevant (see line 24 of the script)

Additional information

@boisei0
boisei0 / __init__.py
Last active May 7, 2019 11:01
av_speech, high level python interface around the AVSpeechSynthesizer in ObjectiveC. Code requires Pythonista 3.2, with Python 3.6. WIP, can't guarantee yet it won't crash.
from .av_speech_synthesis_voice import AVSpeechSynthesisVoice
from .av_speech_synthesis_voice_quality import AVSpeechSynthesisVoiceQuality
from .av_speech_synthesis_voice_gender import AVSpeechSynthesisVoiceGender
from .av_speech_utterance import AVSpeechUtterance
from .av_speech_synthesizer import AVSpeechSynthesizer
__all__ = [
"AVSpeechSynthesisVoice",
"AVSpeechSynthesisVoiceQuality",
"AVSpeechSynthesisVoiceGender",
@boisei0
boisei0 / algorithm.java
Created February 17, 2020 02:11
Fanfic pocket archive library recommendation algorithm
private void generateRecs() {
this.query = new SearchQuery();
long longPref = Prefs.getLongPref(this, Prefs.RECS_DATE);
if (longPref <= 0 || new Date().getTime() - longPref >= DateUtils.MILLIS_PER_DAY) {
try {
List<WorkItem> loadAll = ((ReaderApplication) getApplication()).openDb().getWorkItemDao().loadAll();
int i = 0;
for (WorkItem workItem : loadAll) {
StringBuilder stringBuilder = new StringBuilder();
SearchQuery searchQuery = this.query;
@boisei0
boisei0 / flows.json
Created June 16, 2020 09:59
Super quick demo to show dynamic components on uibuilder v2; assumes `httpNodeRoot` is /.
[{"id":"25ebb57d.b12ef2","type":"tab","label":"Uibuilder \"dynamic\" components","disabled":false,"info":""},{"id":"bc0ec216.f4792","type":"http in","z":"25ebb57d.b12ef2","name":"","url":"/uib-custom/components/JSONSyntaxHighlight.vue","method":"get","upload":false,"swaggerDoc":"","x":250,"y":80,"wires":[["b1e0f99a.6b8df"]]},{"id":"8bba772c.9eb008","type":"http response","z":"25ebb57d.b12ef2","name":"","statusCode":"","headers":{},"x":710,"y":80,"wires":[]},{"id":"b1e0f99a.6b8df","type":"template","z":"25ebb57d.b12ef2","name":"","field":"payload","fieldType":"msg","format":"html","syntax":"plain","template":"<template>\n <pre class=\"syntax-highlight\" v-html=\"syntaxHighlight\">\n </pre>\n</template>\n\n<script>\nmodule.exports = {\n name: 'JSONSyntaxHighLight',\n data() {\n return {\n\n };\n },\n props: {\n prefix: {\n type: String,\n default: '',\n },\n json: {\n type: Object,\n required: true,\n },\n