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 argparse | |
from collections import Counter | |
import csv | |
import os | |
import torch | |
from torch.autograd import Variable | |
import torch.nn as nn | |
import torch.optim as optim | |
import torch.utils.data as data | |
import tarfile |
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/env osascript | |
-- usage: facetime johndoe@xyz.com | |
on run {contact} | |
do shell script "open facetime://" & contact | |
tell application "System Events" | |
repeat while not (button "Call" of window 1 of application process "FaceTime" exists) | |
delay 1 | |
end repeat | |
click button "Call" of window 1 of application process "FaceTime" | |
end tell |
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
;; List from http://www-01.sil.org/linguistics/wordlists/english/wordlist/wordsEn.txt | |
(defn find-words [] | |
(->> "wordsEn.txt" | |
slurp | |
clojure.string/split-lines | |
(filter #(re-matches #"^s.a..$" %)))) | |
;; Output | |
("scabs" "scads" "scags" "scald" "scale" "scalp" "scaly" "scamp" "scams" | |
"scans" "scant" "scape" "scare" "scarf" "scarp" "scars" "scary" "scats" |