Skip to content

Instantly share code, notes, and snippets.

@akatriel
akatriel / gist:5092dcb4a6a46b206833991dcdb6e577
Created March 29, 2018 15:26
Finding database (or any file) on iOS Simulator via the command line as of Xcode 2008
Process to navigate simulator directories.
$ cd ~/Library/Developer/CoreSimulator/Devices
Directories listed correspond to the different devices available.
These names can change.
The easiest way to find which directories correspond to the appropriate device is to
search for all devices and find the correct form factor.
@akatriel
akatriel / main.py
Created December 8, 2017 12:22
Motif Finding created by akatriel1 - https://repl.it/@akatriel1/Motif-Finding
def HammingDistance(str1, str2):
count = 0
for i in range(len(str1)):
if str1[i] != str2[i]:
count += 1
return count
def neighbors(kmer, distance):
k = len(kmer)
if k == 0: