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
"""The cURL command line tool allows you to specify multiple URLs in a | |
single string. For example: | |
http://site.{one,two,three}.com | |
ftp://ftp.numericals.com/file[1-100].txt | |
ftp://ftp.numericals.com/file[001-100].txt (with leading zeros) | |
ftp://ftp.letters.com/file[a-z].txt | |
This module can take a string in this format, and return the list of strings | |
that it specifies. The exact syntax can be seen in the examples on the cURL man |
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
#!/usr/bin/python | |
import sys | |
import os, shutil | |
import subprocess | |
import os.path | |
from datetime import datetime | |
######################## Functions ######################### |
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
tell application "iTerm" | |
activate | |
-- Change this if you want to find a different process | |
set myprocess to "irssi" | |
set procrunning to false | |
-- Count the number of terminal windows open | |
set mytermcount to count of terminal |
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
on open some_images | |
repeat with my_image in some_images | |
try | |
rescale_and_copy(my_image) | |
end try | |
end repeat | |
end open | |
to rescale_and_copy(my_item) | |
tell application "Image Events" |
NewerOlder