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
(function(prototype) { | |
prototype.getContext = (function(_parent) { | |
return function(contextType, contextAttributes) { | |
var context = _parent.call(this, contextType, contextAttributes) | |
if (contextType != '2d') { | |
return context | |
} | |
if (this.hasAttribute('data-scaled')) { | |
return context |
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
#!/bin/sh | |
for f in *@1x.png; do | |
echo "$f" | |
echo "${f%@1x.*}.png" | |
mv "$f" "${f%@1x.*}.png" | |
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
using terms from application "Spotify" | |
if player state of application "Spotify" is paused then | |
tell application "Spotify" to play | |
else | |
tell application "Spotify" to pause | |
end if | |
end using terms from |