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
    
  
  
    
  | #!/bin/bash | |
| echo LOCAL_UID=$(id -u $USER) > .env | |
| echo LOCAL_GID=$(id -g $USER) >> .env | 
  
    
      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
    
  
  
    
  | #!/bin/bash | |
| USER_ID=${LOCAL_UID:-9001} | |
| GROUP_ID=${LOCAL_GID:-9001} | |
| echo "Starting with UID : $USER_ID, GID: $GROUP_ID" | |
| useradd -u $USER_ID -o -m app | |
| groupmod -g $GROUP_ID app | |
| export HOME=/home/app | 
  
    
      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
    
  
  
    
  | sessionInfo() | |
| system.time(m <- rnorm(10^8)) | |
| m2 <- matrix(m, nrow = 10^4) | |
| system.time(m2 %*% m2) | 
  
    
      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
    
  
  
    
  | #!/bin/sh | |
| set -e | |
| DATE=$(date -I) | |
| MONTH=${DATE%-*} | |
| DIR=~/Dropbox/Archives/$MONTH | |
| DL=~/Dropbox/Download | |
| if [ ! -d $DIR ]; then | 
  
    
      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
    
  
  
    
  | # Do not copy the whole configuration, just specify what you need! | |
| # see https://help.farbox.com/pygments.html | |
| # for a list of supported color schemes, default scheme is "native" | |
| options(radian.color_scheme = "native") | |
| # either `"emacs"` (default) or `"vi"`. | |
| options(radian.editing_mode = "vi") | |
| # indent continuation lines | |
| # turn this off if you want to copy code without the extra indentation; | 
  
    
      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
    
  
  
    
  | #!/bin/sh | |
| MAKEVARS="CXXFLAGS=-O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function" | |
| # for linux | |
| if [ "$(expr substr $(uname -s) 1 5)" == 'Linux' ]; then | |
| MAKEVARS="${MAKEVARS} -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION" | |
| # additional for mac | |
| elif [ "$(uname)" == 'Darwin' ]; then | |
| MAKEVARS="${MAKEVARS} |