This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: yellow; icon-glyph: star; | |
// copied & adapted from: https://gist.github.com/kevinkub/46caebfebc7e26be63403a7f0587f664 | |
class LineChart { | |
constructor(width, height, values, ymin, ymax, len, padding = 0) { | |
this.ctx = new DrawContext() | |
this.ctx.size = new Size(width, height) | |
this.values = values; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import requests | |
# quick & dirty script, plz don't judge | |
def get_intensity(meteo_object: object): | |
if "reported_intensity" in meteo_object: | |
return meteo_object["reported_intensity"] | |
def get_intensity_str(meteo_object: object): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// toy http "proxy" (not adhereing the proxy protocol, | |
// only a pre-configured static host), first go programm. | |
// replaces some words with l33t alternative and replaces | |
// all <img> tags. | |
// call with './proxy www.mmix.cs.hm.edu'; only works for | |
// http sites, no https. | |
// known issues: | |
// - not a real proxy | |
// - not valid http |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# Valentin Dornauer <[email protected]> | |
# Sun Dec 11 22:11:27 CET 2016 | |
# | |
# Simple assembler to generate bytecode from asm | |
# text instructions for a custom-built microprocessor. | |
# | |
# Usage: tiasm.py <input_file> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "znc/main.h" | |
#include "znc/User.h" | |
#include "znc/Nick.h" | |
#include "znc/Modules.h" | |
#include "znc/Chan.h" | |
#include "znc/IRCNetwork.h" | |
#include <string.h> | |
using std::pair; | |
using std::map; |