Skip to content

Instantly share code, notes, and snippets.

@jasonsnell
jasonsnell / weatherkit-sampleproject.py
Last active August 10, 2023 21:35
WeatherKit API sample
#! /usr/bin/env python3
import time
import jwt
import json
import requests
from datetime import datetime
from collections import defaultdict
import matplotlib.pyplot as plt
@danielpunkass
danielpunkass / SkipSeconds.applescript
Created April 1, 2014 18:41
Skip forward by N seconds in iTunes
on SkipSeconds(secondsToSkip)
tell application "iTunes"
set newPosition to player position + secondsToSkip
set player position to newPosition
end tell
end SkipSeconds
SkipSeconds(30.0)
@lisamelton
lisamelton / transcode-video.sh
Last active September 8, 2023 23:51
Transcode video file (works best with Blu-ray or DVD rip) into MP4 (or optionally Matroska) format, with configuration and at bitrate similar to popular online downloads.
#!/bin/bash
#
# transcode-video.sh
#
# Copyright (c) 2013-2015 Don Melton
#
about() {
cat <<EOF
$program 5.13 of April 8, 2015
@mathiasbynens
mathiasbynens / appify
Created November 12, 2010 13:46 — forked from subtleGradient/appify
appify — create the simplest possible Mac app from a shell script
#!/bin/bash
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF
appify v3.0.1 for Mac OS X - http://mths.be/appify
Creates the simplest possible Mac app from a shell script.
Appify takes a shell script as its first argument:
`basename "$0"` my-script.sh