CLICK ME
yes, even hidden code blocks!
print("hello world!")
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 |
#### Math with images #### | |
(+)(img::AbstractImageDirect, n::Number) = share(img, data(img)+n) | |
(+)(n::Number, img::AbstractImageDirect) = share(img, data(img)+n) | |
(+)(img::AbstractImageDirect, A::BitArray) = share(img, data(img)+A) | |
(+)(img::AbstractImageDirect, A::AbstractArray) = share(img, data(img)+data(A)) | |
(-)(img::AbstractImageDirect, n::Number) = share(img, data(img)-n) | |
(-)(n::Number, img::AbstractImageDirect) = share(img, n-data(img)) | |
(-)(img::AbstractImageDirect, A::BitArray) = share(img, data(img)-A) | |
(-)(img::AbstractImageDirect, A::AbstractArray) = share(img, data(img)-data(A)) |