I hereby claim:
- I am kch on github.
- I am kch (https://keybase.io/kch) on keybase.
- I have a public key whose fingerprint is 896A A376 3566 F68D 066B 5BEF EAF6 44A0 0B63 A2DE
To claim this, I am signing this object:
| tell application "iTunes" | |
| -- this script only makes sense for iTunes radio, so bail if not it | |
| if container of current playlist is not equal to source "iTunes Radio" then return | |
| -- mute first because ads are so fucking annoying | |
| set mute to true | |
| -- tracks shorter than this number of seconds should be muted as they're likely ads | |
| set _k_mute_threshold to 32 | |
I hereby claim:
To claim this, I am signing this object:
Very few people respect the art of rooftop drinking these days.
The problem faced by Rooftop bars is that their customers often believe they're being respectful because they're wearing a suit or a fancy dress.
Nevermind all the people that COMPLETELY FUCKED UP MUSIC AS WE KNOW IT while dressing well. We're still associating fancy dressing with respect.
| #!/usr/bin/env ruby | |
| ($stderr.puts(DATA.read.gsub("$0", File.basename($0))); exit 1) if ARGV.length != 1 | |
| require 'appscript' | |
| safari_app = Appscript.app("Safari") | |
| safari_process = Appscript.app('System Events').processes['Safari'] | |
| safari_app.activate |
| #!/usr/bin/env ruby | |
| # encoding: UTF-8 | |
| # merge pages from two pdf documents (same as Merge Every Other) | |
| # only the two documents to be merged must be opened, the first must be the front window. | |
| # this assumes a feed scanner, hence expects the second document's pages to be reversed. | |
| require 'appscript' | |
| include Appscript |
| #!/usr/bin/env ruby | |
| # encoding: UTF-8 | |
| pid = fork and (Process.detach(pid); exit) # Go to background. | |
| require 'appscript' | |
| SRC_MACRUBY_WAIT_FOR_PLAYER_NOTIFICATION = <<-RUBY | |
| framework "Cocoa" | |
| def playerInfo(notification); exit; end |
| #!/usr/bin/env ruby | |
| # encoding: UTF-8 | |
| require 'appscript' | |
| require 'pathname' | |
| include Appscript | |
| ### Usage: | |
| # ./itunes-mk-playlist.rb \ | |
| # ~/"Music/iTunes/iTunes Media/Music/Atomine Elektrine/Zektor X/09 ...and Ever.mp3" \ |
| #!/usr/bin/env ruby | |
| # encoding: UTF-8 | |
| require 'appscript' | |
| require 'cgi' | |
| ################################################################### | |
| # Copy the URLs for the selected messages in Mail to the clipboard. | |
| ################################################################### | |
| #!/usr/bin/env runhaskell | |
| (≤) = (<=) | |
| (≥) = (>=) | |
| (≠) = (/=) | |
| (÷) = (div) | |
| main = do | |
| print (1 ≤ 2) | |
| print (2 ≥ 1) |
| // ## compile this with: | |
| // clang \ | |
| // -framework Foundation \ | |
| // -framework AppKit \ | |
| // -framework ApplicationServices \ | |
| // -fobjc-gc-only \ | |
| // -o target_browser \ | |
| // target_browser.m | |
| #import <Foundation/Foundation.h> |