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
class TribSequence(): | |
def __init__(self, a, b, c): | |
self.seq = [a, b, c] | |
def next_term(self): | |
self.seq += [self.seq[-1] + self.seq[-2] + self.seq[-3]] | |
def contains(self, num): | |
if num in self.seq: | |
return True |
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
word_map = { | |
"1": { | |
"0": "", | |
"1": "one", | |
"2": "two", | |
"3": "three", | |
"4": "four", | |
"5": "five", | |
"6": "six", | |
"7": "seven", |
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 "Things" | |
set delimiter to " " | |
set wrapper to "\"" | |
set newItem to return | |
set my_file to (((path to desktop folder) as string) & "things_export.txt") | |
--set plainTextFile to choose file name with prompt "Choose target text file..." | |