Skip to content

Instantly share code, notes, and snippets.

View miniak's full-sized avatar

Milan Burda miniak

View GitHub Profile
@miniak
miniak / index.js
Last active May 31, 2022 06:40
COVID-19 death rate by sex / age group in the Czech Republic
// https://gist.github.com/miniak/554259b91fd004aa4f6b61affc054d88
// https://onemocneni-aktualne.mzcr.cz/api/v2/covid-19
const fetch = require('node-fetch');
const recoveredUrl = 'https://onemocneni-aktualne.mzcr.cz/api/v2/covid-19/vyleceni.csv';
const deathsUrl = 'https://onemocneni-aktualne.mzcr.cz/api/v2/covid-19/umrti.csv';
// const ageThresholds = [0, 15, 25, 35, 45, 55, 65, 75, 85];
const ageThresholds = [0, 10, 20, 30, 40, 50, 60, 70, 80, 90];
// const region = 'CZ010';
@mattt
mattt / uiappearance-selector.md
Last active March 19, 2024 12:52
A list of methods and properties conforming to `UIAppearance` as of iOS 12 Beta 3

Generate the list yourself:

$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS*.sdk/System/Library/Frameworks/UIKit.framework/Headers
$ grep UI_APPEARANCE_SELECTOR ./*     | \
  sed 's/NS_AVAILABLE_IOS(.*)//g'     | \
  sed 's/NS_DEPRECATED_IOS(.*)//g'    | \
  sed 's/API_AVAILABLE(.*)//g'        | \
  sed 's/API_UNAVAILABLE(.*)//g'      | \
 sed 's/UI_APPEARANCE_SELECTOR//g' | \