Skip to content

Instantly share code, notes, and snippets.

@airicbear
airicbear / HelloWorld.jl
Created March 7, 2019 14:33
Hello World
["Hello World" for _ in 0:99]
using Distributions
# Parameters:
# - d: Distribution
# - N: Sample Size
# Returns the sample standard deviation of distribution d given N sample size
_samplestd(d, N) = std(d) / sqrt(N)
# Parameters:
# - μ: The mean of the distribution
@airicbear
airicbear / Projectile Motion.ipynb
Created April 2, 2019 17:16
Projectile Motion Problems
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@airicbear
airicbear / 01 YouTube Download.md
Last active July 15, 2019 01:55
Downloading YouTube Playlists As Audio
@airicbear
airicbear / rename.sh
Created May 7, 2019 23:53
Rename files in subdirectories to DIRECTORYNAME-SUBDIRECTORYNAME-FILENAME
for D in *; do
if [ -d "${D}" ]; then
for F in $D/*; do
mv $F ${PWD##*/}-${D##*/}-${F##*/}
done
fi
done
@airicbear
airicbear / cowpoop.sh
Created May 8, 2019 15:40
Cowsay 💩💩💩
NUMPOOP=100
if [ $1 ]; then
NUMPOOP=$1
fi
python3 -c "print(' '.join(['💩' for _ in range(0, $NUMPOOP)]))" | cowsay | lolcat
@airicbear
airicbear / config
Last active June 14, 2019 22:43
Green on black i3
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
@airicbear
airicbear / avatar.md
Last active June 11, 2019 10:52
Avatar ASCII

Avatar ASCII

.................;..............
..........;1bebaaaaaberb1;......
.......;ceaaaaaaaaaaaaaaaab;....
.....;cbaaaaaaaaaaaaaaaaaaar....
....cbaaaaaaaaaaaaaaaaaaaaab....
..ieaaaaaaaaaaaaaaaaaaaaaarrr;..
.;caaaaaaaaaaaaaaaaaaaaabcrrrr;.
doubleMe x = x + x
doubleUs x y = x*2 + y*2
doubleSmallNumber x = if x > 100
then x
else x*2
doubleSmallNumber' x = (if x > 100 then x else x*2) + 1

Album Downloads

IU

Modern Times - Epilogue (2013)

youtube-dl --extract-audio --audio-format vorbis -o "%(title)s.%(ext)s" https://www.youtube.com/watch?v=xKZ3U8viuIU https://www.youtube.com/watch?v=XNtUcZbYsew https://www.youtube.com/watch?v=p-LEkRdrmn8 https://www.youtube.com/watch?v=lD5STtoEGG4 https://www.youtube.com/watch?v=sBVca5KOpkM https://www.youtube.com/watch?v=XaZptY3DCxk https://www.youtube.com/watch?v=GdNbfXqcOJ8 https://www.youtube.com/watch?v=Tqudgg0aBAI https://www.youtube.com/watch?v=jxyVnTjUDTQ https://www.youtube.com/watch?v=tYkOXrKViDk https://www.youtube.com/watch?v=7VacG7ySMM4 https://www.youtube.com/watch?v=uZf9Q_SOzvY https://www.youtube.com/watch?v=GaR7hwuBgeA https://www.youtube.com/watch?v=1i9ZhJJufiM https://www.youtube.com/watch?v=PBgv9Ey-Hb8