Skip to content

Instantly share code, notes, and snippets.

tell application "Google Chrome"
repeat with t in tabs of windows
tell t
if URL starts with "http://mixes.dabears.ca" then
execute javascript "x=document.getElementsByName('media')[0];if(x.paused){x.play()}else{x.pause()}"
exit repeat
end if
end tell
end repeat
end tell

Heading here

  • list one
  • two
  • there

Another heading

  • here we go

Heading here

  • list one
  • two
  • there

Another heading

  • here we go

Keybase proof

I hereby claim:

  • I am vhata on github.
  • I am vhata (https://keybase.io/vhata) on keybase.
  • I have a public key whose fingerprint is E559 364E 00D2 336D 1066 B798 5510 3563 62F2 793D

To claim this, I am signing this object:

tell application "Rdio"
set c to current track
set x to artist of c & " - " & name of c & " [" & album of c & "]"
end tell
tell application "Growl"
set the allNotificationsList to {"Rdio Helpers"}
set the enabledNotificationsList to {"Rdio Helpers"}
register as application "Rdio Helpers" all notifications allNotificationsList default notifications enabledNotificationsList icon of application "Rdio.app"
notify with name "Rdio Helpers" title "Now Playing" description x application name "Rdio Helpers" priority 0 without sticky
end tell
Hi,
I'd like to apply for the position of Platform Engineer at Synthasite.
I have several years experience with Unix-based systems, from messing
around on the FreeBSD box owned by the student computer society at
Rhodes University, to breaking my own desktop Linux box repeatedly, to
setting up and maintaining the Linux servers of both companies for which
I've worked since I left Rhodes. In addition, I have been writing code
for both fun and profit, since I was eight years old and received a ZX
Spectrum with 48 kilobytes of memory, and an instruction manual with
@vhata
vhata / cats.md
Last active December 22, 2015 17:39
Taking a cat to Canada

Hi Jonathan

Cats from countries not recognized by Canada as being rabies-free may enter Canada if they are accompanied by a rabies vaccination certificate. South Africa is not regarded as being rabies free.

The Rabies Vaccination Certificate must:

  • be written in English or French;
  • be issued and signed by a licensed veterinarian;
  • identify the animal (as in breed, colour, and weight);
  • state that the animal is vaccinated against rabies;
$ pip freeze
nose==1.3.0
numpy==1.7.1
pygame==1.9.1release
pymunk==4.0.0
virtualenv==1.10.1
wsgiref==0.1.2
$ ./run_game.py
Loading chipmunk for Darwin (64bit) [/Users/jonathan/src/nagslang/virtualenv/lib/python2.7/site-packages/pymunk/libchipmunk.dylib]
Initializing cpSpace - Chipmunk v6.2.0 (Debug Enabled)
Compile with -DNDEBUG defined to disable debug mode and runtime assertion checks
Traceback (most recent call last):
File "./run_game.py", line 5, in <module>
nagslang.__main__.main()
File "/Users/jonathan/src/nagslang/nagslang/__main__.py", line 23, in main
engine = Engine(screen)
File "/Users/jonathan/src/nagslang/nagslang/engine.py", line 35, in __init__
class Chef
class Provider
alias_method :old_converge_by, :converge_by
def converge_by(descriptions, &block)
if descriptions.kind_of? String
run_context.descriptions << descriptions
descriptions = "X #{descriptions}"
elsif descriptions.kind_of? Array
run_context.descriptions.concat(descriptions)
end