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
on sansExt(theFileName) | |
do shell script "file=" & theFileName & ";" & "echo ${file%.*}" | |
end sansExt | |
on getExt(theFileName) | |
do shell script "file=" & theFileName & ";" & "echo ${file##*.}" | |
end getExt | |
on run argv | |
set keynote_path to (item 1 of argv) |
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
#Newbie programmer | |
def factorial(x): | |
if x == 0: | |
return 1 | |
else: | |
return x * factorial(x - 1) | |
print factorial(6) | |
#First year programmer, studied Pascal |