I hereby claim:
- I am lukem512 on github.
- I am lukemitchell (https://keybase.io/lukemitchell) on keybase.
- I have a public key whose fingerprint is D83E 1825 CCA2 1F1B 0216 3D39 9177 EEC4 EDED 967C
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// Luke Mitchell, 2016 | |
"use strict" | |
var mwu = require('mann-whitney-utest'); | |
const DEFAULT_COUNT = 1000000 | |
const DEFAULT_P = 0.05 | |
function min (us) { | |
if (us[0] < us[1]) |
% Final Project | |
% Luke Mitchell (lm0466) | |
% Main MATLAB script | |
function finalproj | |
% Retrieve mtDNA from GenBank | |
killerwhale = getgenbank('NC_023889'); | |
disp(['Using ', killerwhale.Definition]); | |
% All organisms are vertebrates |
%% Luke Mitchell, April 2016 | |
%% Question 3 | |
p.('a') = 1/2; | |
p.('c') = 1/6; | |
p.('g') = 1/6; | |
p.('t') = 1/6; | |
seq = 'acgtacgtacgt'; |
<html> | |
<head> | |
<title>Plasma</title> | |
<meta name="author" content="Luke Mitchell" /> | |
<style> | |
body { | |
margin: 0; | |
padding: 0; | |
} |
#! /bin/bash | |
# View the most recent Forever log file | |
logs=($(ls -t ~/.forever/logs)); less $logs[1] |
// Sort the strings alphabetically, then sort the strings by length | |
// Naively compare each string to the others and try to find anagrams. | |
function hasAnagram(strings) { | |
const sorted = strings.map(s => s.split("").sort().join("")).sort(); | |
return sorted.some((s, i) => { | |
const sliced = sorted.slice(0, i).concat(sorted.slice(i+1)); | |
return sliced.find(s2 => s == s2); | |
}); | |
} |
#! /bin/sh | |
ssid1="THEUNIVERSE" | |
pass1="yourpass" | |
ssid2="SPACE" | |
pass2="yourotherpass" | |
curr=`/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | awk '/ SSID/ {print substr($0, index($0, $2))}'` | |
echo Currently connected to $curr | |
echo Power cycling... |
// Dense Binary Text Encoding | |
// Encode each of the 26 letter as 1 to 26, in binary. | |
// Encode spaces as 0. | |
const ASCII_A = 65; | |
const ENCODED_SPACE = 0; | |
function dbte(str) { | |
const digits = str.toUpperCase().split(''); | |
const encoding = digits.reduce((obj, d, i) => { |