Skip to content

Instantly share code, notes, and snippets.

@justdamilare
justdamilare / sample_formula.rb
Created October 3, 2022 13:29
A sample Homebrew Formula
class Wget < Formula
homepage "https://www.gnu.org/software/wget/"
url "https://ftp.gnu.org/gnu/wget/wget-1.15.tar.gz"
sha256 "52126be8cf1bddd7536886e74c053ad7d0ed2aa89b4b630f76785bac21695fcd"
def install
system "./configure", "--prefix=#{prefix}"
system "make", "install"
end
end
@justdamilare
justdamilare / plot.r
Created March 31, 2022 11:19
Boxplot of Boreal Forest (in R) using only the std, mean (as median) and the percentiles
library(ggplot2)
df <- data.frame(mean=c(-15.3847,-13.8345,-15.6586,-12.9021,-14.8223),
sd=c(0.8202, 1.0819,1.1738,1.4993,1.4620),
q1=c(-15.9060,-14.6200,-16.3240,-14.2200,-16.1340),
q3=c(-14.8207,-13.0962,-15.0522,-11.7610,-13.7840),
Year=as.factor(c(2017,2018,2019,2020,2021)))
df