Skip to content

Instantly share code, notes, and snippets.

@achisto
achisto / incidence.js
Last active Oct 21, 2020 — forked from kevinkub/incidence.js
COVID-19 Inzidenz-Widget für iOS innerhalb Deutschlands 🇩🇪
View incidence.js
// Licence: Robert Koch-Institut (RKI), dl-de/by-2-0
// Forked from Kevin Kub: https://gist.github.com/kevinkub/46caebfebc7e26be63403a7f0587f664
// Some parts copied from fork by @ rphl: https://gist.github.com/rphl/0491c5f9cb345bf831248732374c4ef5
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 apiUrlLand = (landname) => `https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/Coronaf%C3%A4lle_in_den_Bundesl%C3%A4ndern/FeatureServer/0/query?where=LAN_ew_GEN+%3D+%27${encodeURIComponent(landname)}%27&objectIds=&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&resultType=none&distance=0.0&units=esriSRUnit_Meter&returnGeodetic=false&outFi
@achisto
achisto / dm-flour.js
Last active Oct 29, 2020 — forked from marco79cgn/dm-toilet-paper.js
Scriptable iOS widget that shows the amount of flour which is available at your next dm drugstore
View dm-flour.js
// Forked from https://gist.github.com/marco79cgn/23ce08fd8711ee893a3be12d4543f2d2
// Based on the code at 24 Oct 2020 00:24
//
// Displays the amount of flour that is still available.
// Product numbers taken from a search for "Weizenmehl": https://www.dm.de/search?query=weizenmehl&searchType=product
//
// Icon made by Freepik from www.flaticon.com and modified by achisto
//
let country = 'de'
@achisto
achisto / twitter-blockfutter-20210731
Last active Jul 31, 2021
Liste mit Accounts, deren Follower*innen bedenkenlos per Blockchain geblockt werden können
View twitter-blockfutter-20210731
https://twitter.com/RolZipfel
https://twitter.com/dimetrodon109
https://twitter.com/DaniEngel6
https://twitter.com/wegecon
https://twitter.com/Adele66661
https://twitter.com/Yuma_Lein
https://twitter.com/AxorCreex
https://twitter.com/Hartmut73
https://twitter.com/artep21
https://twitter.com/RSchbok