I hereby claim:
- I am rrajasek95 on github.
- I am rrajasek95 (https://keybase.io/rrajasek95) on keybase.
- I have a public key ASCh-KQKQ71NS4buH5wWWFFO7KqUkekgpiDMMsb3AWqBRAo
To claim this, I am signing this object:
""" | |
A set of basic util functions. | |
They're pretty simple recipes which can be stored as snippets. | |
Available at: | |
https://gist.github.com/rrajasek95/3c43fafdd85d02e55dc2d5fad8798ac2 | |
""" | |
from itertools import repeat | |
import sys |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
source functions.sh | |
folder=$1 | |
find $folder -name "*.mp3" | while read file; | |
do | |
basename=${file%.mp3} | |
echo "Converting $basename" | |
f_mp3towav $file $basename".wav" | |
done |
"""Addagrams.""" | |
import argparse | |
import pickle | |
alphabet = 'abcdefghijklmnopqrstuvwxyz' | |
def load_dictionary(filename): | |
with open(filename) as file: | |
words = [word.strip().lower() for word in file] |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Exemplar Provider Registration</title> | |
<style type="text/css"> | |
body { | |
font: 16px "Open Sans", Helvetica, Arial, sans-serif; | |
color: white; | |
background-color: #003300; |
According to Chinese Remainder Theorem:
If $ a \equiv b\ (mod \ m) $ and $ a \equiv c \ (mod \ n)
Then by CRT: $$ \begin{align} x &\equiv yp(p^{-1}(mod\ q)) + yq(q^{-1}(mod\ p) (mod\ N) \ &\equiv y(p(p^{-1}(mod \ q)) + q(q^{-1}(mod \ p))) - (1)
The Birthday Paradox question is stated as follows:
Given that there are $k$ people in a room, what is the minimum value of $k$ that the probability that any two people in the room share a birthday is at least $\frac{1}{2}$
We can note the following events: