Skip to content

Instantly share code, notes, and snippets.

View mattkohl's full-sized avatar
🌀
. . .

Matt Kohl mattkohl

🌀
. . .
View GitHub Profile
@kfox
kfox / update-slack-status-from-spotify.sh
Created March 9, 2018 02:20
Updates your Slack status with the current artist and song title in Spotify
#!/usr/bin/env bash
: "${SLACK_API_TOKEN:?Need to set SLACK_API_TOKEN environment variable}"
STATUS=$(/usr/bin/osascript <<"EOF"
if application "Spotify" is running and application "Slack" is running then
tell application "Spotify"
set currentArtist to artist of current track as string
set currentSong to name of current track as string
return currentArtist & " - " & currentSong
@sthware
sthware / nn_from_scratch.py
Last active December 22, 2016 07:51
A partially-refactored, variable-name-expanded, heavily commented version of Britz's "Neural Network from scratch" code.
#!/usr/bin/env python
## NAME
## Neural Network from scratch
##
## DESCRIPTION
## A partially-refactored, variable-name-expanded, heavily commented version
## of Denny Britz's code. Original blog post:
## http://www.wildml.com/2015/09/implementing-a-neural-network-from-scratch/
##
@staltz
staltz / introrx.md
Last active May 16, 2024 10:44
The introduction to Reactive Programming you've been missing