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
// Returns a random DNA base | |
const returnRandBase = () => { | |
const dnaBases = ['A', 'T', 'C', 'G']; | |
return dnaBases[Math.floor(Math.random() * 4)]; | |
}; | |
// Returns a random single stand of DNA containing 15 bases | |
const mockUpStrand = () => { | |
const newStrand = []; | |
for (let i = 0; i < 15; i++) { |
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
// MARK: Placeholder, replace with real types | |
public enum EventType { | |
case notSet | |
} | |
// MARK: Delegate type aliases | |
public typealias Callback = () -> () | |
public typealias Callback<T> = (arg: T) -> () | |
// MARK: Event exceptions |
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
#!/bin/bash | |
for i in *.avi; | |
do | |
name=`echo $i | cut -d'.' -f1`; | |
avconv -i "$i" -vcodec libx264 -acodec aac -strict experimental -threads 3 "$name.mp4"; | |
done |