Skip to content

Instantly share code, notes, and snippets.

View boisei0's full-sized avatar

Lena Derksen boisei0

View GitHub Profile
{
"last_generated": 1597149482,
"proto_name": "NL",
"name": "NL",
"code": "NL",
"verdenkingen_huisartsen": {
"values": [{
"week_unix": 1583625600,
"incidentie": 5.7,
"geschat_aantal": 1094,
@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>
@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 / 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 / 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 / __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 / 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 / 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 / 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 / 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==