Skip to content

Instantly share code, notes, and snippets.

View owiecc's full-sized avatar

Szymon Bęczkowski owiecc

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>Activate</key>
<string>Normal</string>
<key>CreationDate</key>
<real>662983072.02042305</real>
<key>Macros</key>
@owiecc
owiecc / Hide Office Update note.kmmacros
Created May 25, 2021 20:19
Keyboard Maestro macro for hiding Microsoft Office 2016 for Mac update note
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>Activate</key>
<string>Normal</string>
<key>CreationDate</key>
<real>643662967.03044295</real>
<key>Macros</key>
@owiecc
owiecc / Rename PDF file name to paper title.kmmacros
Created May 17, 2021 11:30
Keyboard Maestro macro for renaming PDF files with academic papers.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>Activate</key>
<string>Normal</string>
<key>CreationDate</key>
<real>642929653.94429398</real>
<key>Macros</key>
@owiecc
owiecc / changesets.jl
Created February 25, 2021 21:45
Plots the number of openstreetmap changesets over time
using Dates, HTTP, LightXML, TimeZones
function changesettime(n::Integer)
r = HTTP.request("GET", "https://www.openstreetmap.org/api/0.6/changeset/"*string(n))
xroot = (root ∘ parse_string ∘ String)(r.body)
changeset = xroot["changeset"][1]
dt = attribute(changeset, "created_at")[1:end-1]
df = DateFormat("y-m-dTH:M:S.s") # "2005-12-08T19:04:55Z"
return DateTime(dt,df)