Skip to content

Instantly share code, notes, and snippets.

@thadk
thadk / init.lua
Created August 15, 2018 20:22
hammerspoon setup with split current chrome tab to new window
hs.window.animationDuration = 0
function reloadConfig(files)
local doReload = false
for _,file in pairs(files) do
if file:sub(-4) == ".lua" then
doReload = true
end
end
if doReload then
hs.reload()
@thadk
thadk / equal-area-polygon.md
Last active August 14, 2018 06:32
Following Paul Ramsey's blog post about equal area subdivisions in Carto
@thadk
thadk / .block
Created July 14, 2017 13:57
React + D3 Boilerplate
license: mit
@thadk
thadk / .block
Created July 7, 2017 18:29
Topojson on a leaflet map
license: mit
@thadk
thadk / .block
Last active July 14, 2017 15:04
Liberia Map with Hover
license: mit
@thadk
thadk / .block
Last active April 28, 2019 02:42
How to highlight a polygon when hovering on a CARTO layer
license: mit
@thadk
thadk / .block
Last active June 23, 2017 01:37
CSV on a GL map!
license: mit
@thadk
thadk / .block
Last active June 19, 2017 20:27
CSV on a GL map OLD!
license: mit
@thadk
thadk / soma-fm-app-favorites-extract.md
Last active October 30, 2016 21:07
Extract your favorited songs from the SomaFM Mac App (may work on iOS db as well)

Quit SomaFM app.

brew install sqlite3

Replace your username in the paths below:

Get all your favorite/bookmarked songs on Mac SomaFM app that have no parenthesis in the title: sqlite3 /Users/thadk/Library/Containers/com.somafm.somafmmac/Data/Library/Application\ Support/SomaFM/SomaFM.sqlite3.db "SELECT printf('%s - %s', replace(title,'-',' '), replace(artist,'-',' ')) FROM bookmarks WHERE title NOT LIKE '%(%'"

Then use this website to convert to Spotify or YouTube:

@thadk
thadk / .block
Last active February 12, 2016 18:23
Chained Transitions
license:gpl-3.0