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_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 / __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
@boisei0
boisei0 / minvws_covid_dashboard_raw.json
Created August 17, 2020 11:41
Hierbij alvast een voorlopige export van mijn lokale database om alle data van het Corona Dashboard van MinVWS terug te kijken. Let op: doordat er 2x per dag een export wordt gemaakt staan er dubbele series in. Let op `data.last_generated` en gebruik die waarde als uitgangspunt. Export tweemaal daags is om eventuele tussentijdse wijzigingen te v…
This file has been truncated, but you can view the full file.
[{
"_id": "a7a7d2d21c571bfe62afc686b7000603",
"_rev": "1-23cfbb639ffebb94c2c859b91d20d8ee",
"timestamp": 1596990030926,
"data": {
"last_generated": 1596976498,
"proto_name": "NL",
"name": "NL",
"code": "NL",
"verdenkingen_huisartsen": {
@boisei0
boisei0 / grafieken-verpleeghuizen.html
Created August 18, 2020 15:19
HTML bestand om verpleeghuisgrafieken in te zien van 9 augustus t/m 17 augustus. NB: dit is een snelle export, niet de uiteindelijke die ik had beloofd.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!-- including ECharts file -->
<script src="https://cdn.jsdelivr.net/npm/echarts@4.8.0/dist/echarts.min.js"></script>
</head>
<body>
<!-- preparing a DOM with width and height for ECharts -->
<div id="chart" style="width:800px; height:400px;"></div>