with some text.
This file contains hidden or 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
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'))) |
This file contains hidden or 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
// 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"); |
This file contains hidden or 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
// 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 |
This file contains hidden or 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
// 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) |
This file contains hidden or 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
with some text. |