This file contains hidden or 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/osascript | |
on run argv | |
set dir to quoted form of (first item of argv) | |
if application "iTerm" is running then | |
set wasRunning to true | |
else | |
set wasRunning to false | |
end if |
This file contains hidden or 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
// Work around a bug in IE 10/11: http://tinyurl.com/qykro7d | |
// The bug makes any empty textarea's placeholder its value. | |
// We undo that wherever it's happened. | |
jQuery(function() { | |
$('textarea').each(function() { | |
if ($(this).val() === $(this).attr('placeholder')) { | |
$(this).val(''); | |
} | |
}); |