- 2 eggs
- 3/2 cup sugar
- 2 cups flour
- 1/2 cup canola oil
- 1/2 cup milk
- 3/4 tsp baking soda
- 3/2 tsp baking powder
- 2 mashed bananas
- lemon peel
This file contains hidden or 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
f = lambda x: (x - 8) / 3 + 4 | |
g = lambda x: (x - 4) * 3 + 8 |
This file contains hidden or 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 sys | |
import itertools as it | |
stateCount = 4 | |
transitionCount = stateCount ** 2 | |
taxonCount = 92 | |
f = lambda m, n, i, j: (m + n * (n - 1) // 2) * transitionCount + stateCount * i + j | |
for l in sys.stdin: |
This file contains hidden or 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 sys | |
import itertools as it | |
from collections import Counter | |
fn = sys.argv[1] | |
with open(fn) as f: | |
N = sum(1 for _ in f) | |
counts = {} |
This file contains hidden or 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
using Distributions | |
using Iterators | |
using StatsBase | |
type Particle{T} | |
value::T | |
weight::Float64 | |
end | |
Particle{T}(value::T) = Particle(value, 1.0) |
This file contains hidden or 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
type Node | |
label::String | |
height::Float64 | |
parent::Node | |
left::Node | |
right::Node | |
end | |
Node(label::String, height::Float64) = Node(label, height, None, None, None) |
This file contains hidden or 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
x y z | |
0.5 1.0 1102.6653073315774 | |
0.7272300105421488 0.8740779740855684 1095.4778163809021 | |
1.1264366494503553 0.4759394735085066 1070.0371428485853 | |
1.1264366494503553 0.4759394735085066 1070.0371428485853 | |
1.116792813277176 0.4760376649851028 1069.7935934823915 | |
1.3596616396957355 0.1133715525159581 1053.7430334714504 | |
1.3596616396957355 0.1133715525159581 1053.7430334714504 | |
1.143913847055679 0.21382193634748284 1051.569214273102 | |
1.0131051618370646 0.07418646571818821 1047.4504891550416 |
This file contains hidden or 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
\documentclass{standalone} | |
\usepackage{tikz} | |
\usetikzlibrary{arrows} | |
\usetikzlibrary{arrows.meta} | |
\makeatletter | |
\pgfarrowsdeclare{center*}{center*} | |
{ | |
\pgfarrowsleftextend{+-.5\pgflinewidth} |
This file contains hidden or 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 Rscript | |
args <- commandArgs(trailingOnly = TRUE) | |
pdf("boxplots.pdf", width=8,height=20) | |
par(mfrow=c(5,2)) | |
for (a in args) { | |
x <- read.table(a) | |
boxplot(x, log = 'y', xlab = "Number of Taxa", main = a) |
This file contains hidden or 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 python3 | |
# The MIT License (MIT) | |
# | |
# Copyright (c) 2015 Arman Bilge | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |