This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Macworld Markdown to HTML script | |
--by Jason Snell <[email protected]> | |
--Markdown and SmartyPants by John Gruber <http://daringfireball.net/projects> | |
--Version 10: Added Euro support and forced Unicode for output file | |
--Version 11: Output now opens as new document in source window. | |
--Version 12: Makes sure the output document is set to source language of HTML | |
--Version 13: Support for [[jump]] tag | |
--Version 14: Rewrite iLife ‘09 style tags to proper ’09 style. | |
--Version 15: Support pound symbol |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in "$@" ; do /Users/jsnell/ffmpeg -i "$i" -map 0:0 -acodec pcm_s16le -ac 1 -out_sample_rate 44100 "${i%.*}.wav" ; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I've moved this to a proper GitHub project. | |
Check it out at: | |
https://github.com/jasonsnell/PurpleAir-AQI-Scriptable-Widget |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
error_reporting( 0 ); | |
// This version is for SwiftBar. swiftbar.app | |
// <bitbar.title>EPA Air Quality</bitbar.title> | |
// <bitbar.version>v2.0</bitbar.version> | |
// <bitbar.author>Jason Snell</bitbar.author> | |
// <bitbar.author.github>jasonsnell</bitbar.author.github> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- PurpleAir station ID | |
set theStationID to "6732" | |
tell application "JSON Helper" | |
set theWeather to (fetch JSON from ("https://www.purpleair.com/json?show=" & theStationID) with cleaning feed) | |
set theStatsA to (read JSON from (Stats of item 1 of results of theWeather)) | |
set theStatsB to (read JSON from (Stats of item 2 of results of theWeather)) | |
set theLocation to Label of item 1 of results of theWeather | |
set theLat to (Lat of item 1 of results of theWeather) | |
set theLon to (Lon of item 1 of results of theWeather) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
error_reporting( 0 ); | |
// find a PurpleAir sensor ID on the PurpleAir map and put that ID in $show | |
$show = '6732'; | |
$url = ( 'https://www.purpleair.com/json?show=' . $show ); | |
// Get the sensor data via JSON |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
error_reporting( 0 ); | |
// This version requires SwiftBar, rather than BitBar. swiftbar.app | |
// <bitbar.title>EPA Air Quality</bitbar.title> | |
// <bitbar.version>v2.0</bitbar.version> | |
// <bitbar.author>Jason Snell</bitbar.author> | |
// <bitbar.author.github>jasonsnell</bitbar.author.github> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use AppleScript version "2.4" -- Yosemite (10.10) or later | |
use scripting additions | |
set nameArray to {} | |
set templateFolder to (alias "Macintosh HD:Users:jsnell:Dropbox:Podcast Templates:") | |
tell application "Finder" to set theNames to the name of items in folder templateFolder | |
set mychoice to (choose from list theNames with prompt "Choose your Template" with title "Template Gun" default items "None" OK button name {"Choose"} cancel button name {"Cancel"}) as string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use AppleScript version "2.4" -- Yosemite (10.10) or later | |
use scripting additions | |
# Sample Keyboard Maestro macros at | |
# <https://sixcolors.com/wp-content/uploads/2022/01/Podcast-Noter-Macros.kmmacros.zip> | |
on run argv | |
try | |
set theNote to (item 1 of argv) | |
on error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/local/bin/python3 | |
# Storm Log script | |
# For WeatherCat - https://trixology.com | |
# By Jason Snell <[email protected]> | |
import re | |
from collections import defaultdict | |
import datetime |
OlderNewer