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
# ghost skip consistency calculator | |
import random | |
import sys | |
if 'bludgeon' in sys.argv: | |
max_hit = 53 | |
accuracy = 0.8168 | |
speed = 4 # ticks | |
elif 'blowpipe' in sys.argv: | |
max_hit = 31 |
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
// ==UserScript== | |
// @name Show Invasions on Group Page TTR | |
// @namespace https://github.com/christian-mann | |
// @version 1.1 | |
// @description Show invading cogs on the groups page of https://toonhq.org/groups so that it's easier to find a group for the cog you're looking for | |
// @author Christian Mann (aka Lucky Penny) | |
// @match https://toonhq.org/groups/ | |
// @grant GM.xmlHttpRequest | |
// ==/UserScript== |
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 sys | |
import math | |
def factors(n): | |
while n % 2 == 0: | |
yield 2 | |
n //= 2 | |
for i in range(3, int(math.sqrt(n))+1, 2): | |
while n % i == 0: | |
yield 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
#include <setjmp.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#ifndef C_LAMBDA | |
#define C_LAMBDA | |
typedef struct { | |
void *addr; |
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
echo "main(i){for(i=0;;i++)putchar(((i*(i>>8|i>>9)&46&i>>8))^(i&i>>13|i>>6));}" | gcc -x c - && ./a.out | aplay |
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
* { | |
font-weight: bold; | |
} |
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
\documentclass{exam} | |
\usepackage[margin=1in]{geometry} | |
\usepackage{amsmath} | |
\usepackage{booktabs} | |
\usepackage{listings} | |
\usepackage{graphicx} | |
\usepackage{paralist} | |
\title{Statistics Homework 9} | |
\author{Christian Mann} |
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
\documentclass{exam} | |
\usepackage{listings} | |
\begin{document} | |
\title{Homework Set 7} | |
\author{} | |
\date{} | |
\maketitle | |
\begin{questions} |
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
3-86: The number of people arriving for treatment at an emergency room can be modeled by a Poisson process with a rate parameter of five per hour. | |
a) What is the probability that exactly four arrivals occur during a particular hour? | |
b) What is the probability that at least four people arrive during a particular hour? | |
c) How many people do you expect to arrive during a 45-min period? | |
3-90: Let $X$ have a Poisson distribution with parameter $\mu$. Show that $E(X) = \mu$ directly from the definition of expected value. [\emph{Hint:} The first term in the sum equals 0, and then $x$ can be canceled. Now factor out $\mu$ and show that what is left sums to 1. | |
4-4: Let $X$ denote the vibratory stress (psi) on a wind turbine blade at a particular wind speed in a wind tunnel. The article "Blade Fatigue Life Assessment with Application to VAWTS" (\emph{J. of Solar Energy Engr.}, 1982: 107-111) proposes the Rayleigh distribution, with pdf | |
\[ f(x; \theta) = \left\{ \begin{matrix} \frac{x}{\theta^2} \cdot e^{-x^2/(2\ |