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
# design settings | |
gutter = 60 | |
radius = 6 | |
pageW = 1600 | |
# draw filled outline or contours | |
contour = False | |
# draw nodes and bluezones and vertical metrics? |
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
import os | |
print("Path at terminal when executing this file") | |
print(os.getcwd() + "\n") | |
print("This file path, relative to os.getcwd()") | |
print(__file__ + "\n") | |
print("This file full path (following symlinks)") | |
full_path = os.path.realpath(__file__) |
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 | |
# it's easy to print this list of course: | |
print sys.argv | |
# or it can be iterated via a for loop: | |
for i in range(len(sys.argv)): |
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
dict={ | |
'cap' : 'A B C D E F G H I J K L M N O P Q R S T U V W X Y Z'.split(' '), | |
'lowercase' : 'a b c d e f g h i j k l m n o p q r s t u v w x y z'.split(' ') | |
} | |
def find(this, dictionary): | |
for key in dictionary.keys(): | |
if this in dictionary[key]: | |
return key | |
NewerOlder