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
export const countries = { | |
"Afrika": { | |
"DZ": "Algerien", | |
"AO": "Angola", | |
"BJ": "Benin", | |
"BW": "Botsuana", | |
"BF": "Burkina Faso", | |
"BI": "Burundi", | |
"CI": "Côte d’Ivoire", | |
"CD": "Demokratische Republik Kongo", |
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
{ | |
"AF": "Afghanistan", | |
"EG": "Ägypten", | |
"AL": "Albanien", | |
"DZ": "Algerien", | |
"AD": "Andorra", | |
"AO": "Angola", | |
"AI": "Anguilla", | |
"AQ": "Antarktis", | |
"AG": "Antigua und Barbuda", |
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: green; icon-glyph: sun; | |
/////////////////////////////////////////////////////////////////////// | |
// vaccinations.js | |
// Origin: | |
// https://gist.github.com/HendrikRunte/4efed5a7f68f73c6c4553742991a58de | |
// Take it and have fun. | |
// Hendrik Runte, Jan 16, 2020, 20:48. |
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: sun; | |
/////////////////////////////////////////////////////////////////////// | |
// yesteryear.js | |
// Origin: | |
// https://gist.github.com/HendrikRunte/8a17fcab2ff1c6ffbef0bd4d6011663f | |
// Take it and have fun. | |
// Hendrik Runte, Dec 14, 2020, 14:36. |
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: orange; icon-glyph: sun; | |
/////////////////////////////////////////////////////////////////////// | |
// dawn2dusk.js | |
// Origin: | |
// https://gist.github.com/HendrikRunte/4b5d03cb26e31508bc96553ad3c10f47 | |
// Take it and have fun. | |
// Hendrik Runte, Nov 12, 2020, 17:33. |
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
# Arch Linux Setup: https://gist.github.com/kevinkub/46ce7229ee4f17be710ddd7c5a80a3c3 | |
# Change root password | |
echo "# Change password of root user" | |
passwd | |
# Change hostname | |
echo "# Change hostname" | |
hostname | |
sudo hostnamectl set-hostname $hostname |
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
// Licence: Robert Koch-Institut (RKI), dl-de/by-2-0 | |
const apiUrl = (location) => `https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/RKI_Landkreisdaten/FeatureServer/0/query?where=1%3D1&outFields=GEN,cases7_per_100k&geometry=${location.longitude.toFixed(3)}%2C${location.latitude.toFixed(3)}&geometryType=esriGeometryPoint&inSR=4326&spatialRel=esriSpatialRelWithin&returnGeometry=false&outSR=4326&f=json` | |
const apiUrlStates = 'https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/Coronaf%E4lle_in_den_Bundesl%E4ndern/FeatureServer/0/query?where=1%3D1&outFields=cases7_bl_per_100k&returnGeometry=false&outSR=4326&f=json' | |
const widget = await createWidget() | |
if (!config.runsInWidget) { | |
await widget.presentSmall() | |
} | |
Script.setWidget(widget) | |
Script.complete() |
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
#/bin/sh | |
for i in *.jpg; do | |
guetzli --quality 84 --verbose "$i" $(basename "${i/.jpg}").gli.jpg | |
echo "Done with compressing $i by using guetzli/84." | |
done | |
echo "Finished converting all files" | |
exit 1 |
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
/** | |
* router.js | |
* | |
* Hendrik Runte, 2015 | |
*/ | |
/** | |
* Simple hashbang router for single page apps. | |
* | |
* Expects URIs like |
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
Show hidden characters
{ | |
"cmd": [ | |
"java", | |
"-jar", | |
"${packages}/Google Closure/compiler.jar", | |
"--js", | |
"$file", | |
"--js_output_file", | |
"$file_path/$file_base_name-compiled.js", | |
"--compilation_level", |