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
test_results %>% | |
summarise(.estimate = list(enframe(quantile(.error, probs=seq(.10,.90,.05))))) %>% | |
unnest() |
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
FROM rocker/verse:3.6.0 | |
# install some packages needed for odbc and MS repo | |
RUN apt-get update && apt-get install -y \ | |
curl \ | |
apt-utils \ | |
apt-transport-https \ | |
debconf-utils \ | |
build-essential \ | |
&& rm -rf /var/lib/apt/lists/* |
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
#!/bin/bash | |
sudo apt update && sudo apt-get install vim sudo -y \ | |
&& sudo apt-get install git stow -y \ | |
&& sudo adduser $USER sudo \ | |
&& sudo apt install bspwm sxhkd xterm \ | |
suckless-tools feh compton dunst libnotify-bin \ | |
lemonbar xdo acpi gnome-keyring -y \ | |
&& sudo apt remove mate-notification-daemon -y\ | |
&& sudo apt install papirus-icon-theme -y\ | |
&& sudo apt install fonts-firacode fonts-hack \ |
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
#!/bin/bash | |
# Credit | |
# https://marvin.im/post/a-suckless-debian/ | |
# install basics | |
apt-get update; apt-get install -y neovim tmux xinit git build-essential wget curl stow alsa-utils && | |
# get my dotfiles -- mostly for nvim | |
https://github.com/alexhallam/dotfiles.git && | |
cd dotfiles && |
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
ds | gid | u | q | |
---|---|---|---|---|
2016-04-25 | CA_1_X | 0.10 | 3359.54653112229 | |
2016-04-25 | CA_1_X | 0.30 | 3674.8888585185 | |
2016-04-25 | CA_1_X | 0.50 | 4447.04529473154 | |
2016-04-25 | CA_1_X | 0.70 | 5166.51261258749 | |
2016-04-25 | CA_1_X | 0.90 | 5651.46500026313 | |
2016-04-26 | CA_1_X | 0.10 | 3359.54653112229 | |
2016-04-26 | CA_1_X | 0.30 | 3674.8888585185 | |
2016-04-26 | CA_1_X | 0.50 | 4447.04529473154 | |
2016-04-26 | CA_1_X | 0.70 | 5166.51261258749 |
We can't make this file beautiful and searchable because it's too large.
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
date,key,value | |
1998-01-01,21056643,1 | |
1998-02-01,21056643,0 | |
1998-03-01,21056643,0 | |
1998-04-01,21056643,0 | |
1998-05-01,21056643,0 | |
1998-06-01,21056643,1 | |
1998-07-01,21056643,0 | |
1998-08-01,21056643,0 | |
1998-09-01,21056643,0 |
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
date | key | value | |
---|---|---|---|
2001-10-01 | 21056643 | 0 | |
2001-11-01 | 21056643 | 0 | |
2001-12-01 | 21056643 | 0 | |
2002-01-01 | 21056643 | 0 | |
2002-02-01 | 21056643 | 1 | |
2002-03-01 | 21056643 | 1 | |
2001-10-01 | 21012606 | 1 | |
2001-11-01 | 21012606 | 1 | |
2001-12-01 | 21012606 | 1 |
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
" Plugins | |
call plug#begin('~/.vim/plugged') | |
Plug 'rakr/vim-one' " vim-one color theme | |
Plug 'scrooloose/nerdtree' " side bar file tree | |
Plug 'itchyny/lightline.vim' " minmal status bar | |
Plug 'tpope/vim-fugitive' " allows git commands in vim session | |
Plug 'airblade/vim-gitgutter' " shows git changes in gutter | |
Plug 'easymotion/vim-easymotion' " go to any word quickly '\\w', '\\e', '\\b' | |
Plug 'KKPMW/vim-sendtowindow' " send commands to REPL | |
Plug 'yuttie/comfortable-motion.vim' " scrolling 'C-d' or 'C-u' |
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
n <- 1e8 | |
x <- runif(n) | |
y <- runif(n) | |
r = sqrt(x^2 + y^2) | |
data.frame(x,y,r) %>% mutate(in_circle = ifelse(r^2 <= 1, 1, 0)) %>% | |
summarise(4*sum(in_circle)/n) |
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
# calculate the sum of a, b, b2 | |
n <- 1000 | |
m <- 10 | |
a <- rnorm(n, 10) | |
b <- rnorm(n, 20) | |
b2 <- .1*a + .1*b | |
c <- sample(a, size = m*n, replace=T) + sample(b, size = m*n, replace=T) + sample(b2, size = m*n, replace=T) |