I hereby claim:
- I am erictleung on github.
- I am erictleung (https://keybase.io/erictleung) on keybase.
- I have a public key ASDKGm3xXcbmyZTmIskKJlfja4ZDDyGRsf3oQe2hHjbt9wo
To claim this, I am signing this object:
# Sources: | |
# - https://www.git-tower.com/learn/git/faq/git-rename-master-to-main/ | |
# - https://gist.github.com/kelynch/9ba595e369c304b560477f3636b41e8a | |
git checkout master # Assumes master is default branch | |
git branch -m master main | |
git fetch origin | |
git branch -u origin/main main | |
git remote set-head origin -a |
# Load relevant packages | |
library(purrr) | |
library(stringr) | |
library(glue) | |
#' Programmatically generate xaringan outline | |
#' | |
#' @param file string name of generated xaringan RMarkdown | |
#' @param ... list of objects containing the structure for the presentation |
library(magrittr) | |
library(tibble) | |
library(cli) | |
#' Business Card | |
#' | |
#' @return None | |
#' @export | |
#' | |
#' @examples |
# Source: | |
# https://github.com/sympy/sympy/issues/5031#issuecomment-36996878 | |
def do(self, e, i=None, doit=False): | |
"""Return a new Eq using function given or a model | |
model expression in which a variable represents each | |
side of the expression. | |
Examples | |
======== |
' Inspired by | |
' https://github.com/jgm/pandoc/issues/3275#issuecomment-448262352 | |
Sub TableDefaultOptions() | |
Dim tbl As Table | |
For Each tbl In ActiveDocument.Tables | |
tbl.Style = wdStyleTableLightGridAccent1 | |
tbl.ApplyStyleFirstColumn = False | |
tbl.ApplyStyleLastColumn = False | |
tbl.ApplyStyleLastRow = False | |
tbl.ApplyStyleRowBands = True |
# Load libraries | |
library(ggplot2) | |
library(patchwork) | |
set.seed(20200616) | |
# Create data | |
n_pts <- 20 | |
x <- round(runif(n_pts) * 10, 1) |
I hereby claim:
To claim this, I am signing this object:
SSH into Exacloud
Visit Conda website https://docs.conda.io/en/latest/miniconda.html
Copy link to installer
# Go to home directory and download install script
cd
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
# Script to identify Twitter accounts that have not tweeted in a while or just | |
# infrequent. | |
# Modified from: | |
# https://twitter.com/tomstafford/status/1160553156633174017 | |
# Load libraries | |
library(rtweet) | |
library(dplyr) | |
# Set variables |
> a <- 1:10 | |
> beta <- exp(-3:3) | |
> logic <- c(T, F, F, T) | |
> eapply(env = globalenv(), mean) | |
# $`a` | |
# [1] 5.5 | |
# | |
# $logic | |
# [1] 0.5 | |
# |