Skip to content

Instantly share code, notes, and snippets.

# Reference links: https://www.youtube.com/watch?v=WnNA356a9pk
# TechSnips script link
# https://gist.github.com/ctmcisco/a561b72f1416aa5eaef2631104dad1cb
# Nick Craver's script
# https://gist.github.com/NickCraver/7ebf9efbfd0c3eab72e9
# 1. Run Windows Powershell ISE as admin and run the following commands first to install Boxstart w/Chocolately
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://boxstarter.org/bootstrapper.ps1')); Get-Boxstarter -Force
# 2. Run this command to run the following gist for installation:
@pgensler
pgensler / Choco.ps1
Created November 22, 2020 22:28
Choco install Script
## Apps
choco install visualstudiocode -y
choco install microsoft-windows-terminal -y
choco install GoogleChrome -y
## Source Control
choco install git -y
choco install github -y -ignore-checksums
@pgensler
pgensler / stackedbar.r
Last active August 3, 2018 02:41
Stacked barchart with Counts and Total $
library(ggplot2)
library(tidyverse)
library(ggthemes)
install.packages("ggthemes")
summary <- diamonds %>%
group_by(cut) %>%
summarize(price = sum(price),
pos = n())
#With bar labels
@pgensler
pgensler / install tidyquant RStudio Cloud.R
Created December 9, 2017 05:16
install tidyquant RStudio Cloud
* installing *source* package ‘forecast’ ...
** package ‘forecast’ successfully unpacked and MD5 sums checked
** libs
g++ -I/opt/R/3.4.2/lib/R/include -DNDEBUG -I"/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include" -I"/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.4/RcppArmadillo/include" -I/usr/local/include -fpic -g -O2 -c calcBATS.cpp -o calcBATS.o
g++ -I/opt/R/3.4.2/lib/R/include -DNDEBUG -I"/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include" -I"/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.4/RcppArmadillo/include" -I/usr/local/include -fpic -g -O2 -c calcTBATS.cpp -o calcTBATS.o
g++ -I/opt/R/3.4.2/lib/R/include -DNDEBUG -I"/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include" -I"/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.4/RcppArmadillo/include" -I/usr/local/include -fpic -g -O2 -c etsTargetFunction.cpp -o etsTargetFunction.o
g++ -I/opt/R/3.4.2/lib/R/include -DNDEBUG -I"/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.4/Rcp
### Keybase proof
I hereby claim:
* I am pgensler on github.
* I am pgensler (https://keybase.io/pgensler) on keybase.
* I have a public key ASChkgySqRSsl3j3KnouJMg4nBNv_PO6sUIaw59MFoTgtAo
To claim this, I am signing this object:
@pgensler
pgensler / 0_reuse_code.js
Created January 8, 2017 03:47
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#Create Player Table
playernumber <- c(40,16,34,13,5,9,22,11)
athlete <- c("John Resetti","Tom Nook","K.K Slider","Tortimer Montcillo","Booker Wright","Gayle Puffpants","Wolfgang Puck","Agent S")
height <- c("5-11", "6-4","5-10","6-7","6-10","6-4","6-8","6-9")
position <- c("Guard","Forward","Forward","Guard","Center","Center","PG","PG")
status <- c("B","S","S","S","S","S","B","B")
roster <- data.frame(playernumber,athlete,height,position,status)
names(roster) <- c("Player Number","Athlete","Height","Position","Status")
#View the Roster