Skip to content

Instantly share code, notes, and snippets.

@WilDoane
WilDoane / spotify_playlist_getter.applescript
Created April 25, 2015 05:02
Generates output of track info from a Spotify playlist using the Spotify app and the Results window in Apple's Script Editor
# manually find the number of tracks in spotify and enter it here
set n_tracks to 153
tell application "Spotify"
play track "paste:spotify:playlist:uri:here"
delay 2
end tell
on getCurrentlyPlayingTrack()
tell application "Spotify"
@WilDoane
WilDoane / seq
Created December 4, 2012 16:24
Quick creation of UML sequence diagrams from CLI
Using http://sdedit.sourceforge.net/example/index.html
java -jar sdedit-4.0-RC1.jar -o uml.pdf -t pdf -r Landscape UML.txt;open uml.pdf
@WilDoane
WilDoane / createIndex
Created December 4, 2012 16:23
Quick creation of files in subdirectories
for f in Mod* ; touch $f/index.md
@WilDoane
WilDoane / shascroll.html
Created November 30, 2012 07:40
Scrolling to a new SHA1 position on the page
<!DOCTYPE html>
<html>
<head>
<title></title>
<script type="text/javascript" charset="utf-8" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8">
function scrollMe (newSha) {
var newPosition = $("td[data-sha='" + newSha + "']").offset().left;