Skip to content

Instantly share code, notes, and snippets.

View kilataban's full-sized avatar

Kila Taban kilataban

  • Juba, South Sudan
View GitHub Profile
@kilataban
kilataban / r_ubuntu_17_10.sh
Created June 13, 2019 13:41 — forked from Shuyib/r_ubuntu_17_10.sh
Install R on Ubuntu 17.10
# Install R
sudo apt-get update
sudo apt-get install gdebi libxml2-dev libssl-dev libcurl4-openssl-dev libopenblas-dev r-base r-base-dev
# Install RStudio
cd ~/Downloads
wget https://download1.rstudio.org/rstudio-xenial-1.1.383-amd64.deb
sudo gdebi rstudio-xenial-1.1.383-amd64.deb
printf '\nexport QT_STYLE_OVERRIDE=gtk\n' | sudo tee -a ~/.profile
@kilataban
kilataban / gist:94f77a7d7565e62ac19d7f6acbd3e36c
Created March 27, 2017 11:23 — forked from klgraham/gist:3768168
Call-by-name vs call-by-value in Scala
/* call-by-value means the parameters are evaluated left to
** right to determine their value before the function itself
** is evaluated
*/
def first(a: Int, b: Int): Int = a
first(3 + 4, 5 + 6) // will be reduced to first(7, 5 + 6), then first(7, 11), and then 7
/* call-by-name means the paramter is passed into the function
** as is. Parameter evaluation takes place after
** substitution