Skip to content

Instantly share code, notes, and snippets.

import pandas as pd
import io
import requests
import datetime
import matplotlib.pyplot as plt
import numpy as np
url="https://opendata.ecdc.europa.eu/covid19/casedistribution/csv"
s=requests.get(url).content
df=pd.read_csv(io.StringIO(s.decode('utf-8')))
// Taskpaper to Omnifocus
// See online documentation for examples
// http://getdrafts.com/scripting
var p = Prompt.create();
p.addButton("New Project");
p.addButton("New Project in Folder");
p.addButton("New Tasks in Project");
// MarkdownToTaskpaper
// dbox:/wiki/scripts/drafts/MarkdownToTaskPaper.js
// extracts all tasks from markdown.
// ! is due date
// @ is defer date
// % is tag
// Full Featured (and contrived) Example:
// - [ ] Write presentation !Friday %work
// Create meeting minutes
var calendars = ["Kalender", "Ralf"];
var today = new Date();
var yesterday = new Date(today.getTime() - 1000*60*60*24);
var print_event = (e) => `${strftime(e.startDate, "%R")} - ${e.title}`;
var events = calendars
.reduce((e, c) => e.concat(Calendar.find(c).events(yesterday, today)), [])
.sort((a, b) => a.startDate - b.startDate)
.reverse()
.filter(e => !e.isAllDay)
with some text.
@rklueber
rklueber / test.md
Created October 26, 2019 19:00
Test

This is a headline

with some text.