Skip to content

Instantly share code, notes, and snippets.

View tjpalanca's full-sized avatar

TJ Palanca tjpalanca

View GitHub Profile
@tjpalanca
tjpalanca / keybase.md
Created September 8, 2021 22:19
keybase verification

Keybase proof

I hereby claim:

  • I am tjpalanca on github.
  • I am tjpalanca (https://keybase.io/tjpalanca) on keybase.
  • I have a public key ASCusuw3lgjUUQPJsIyhBl-Cuf3cnKQ3V9RCsSNxdKszmgo

To claim this, I am signing this object:

@tjpalanca
tjpalanca / .crostini-setup
Last active February 3, 2023 00:17
Crostini Setup
These scripts set up Crostini on my Pixelbook
@tjpalanca
tjpalanca / .stan-highlighting
Last active September 13, 2018 16:58
Stan Syntax Highlighting in RMarkdown
Stan Syntax Highlighting in RMarkdown
@tjpalanca
tjpalanca / stop_stan_c++_warnings
Created May 28, 2018 08:15
Add this to ~/.R/Makevars to make Stan stop throwing those stank errors during model compilation
CXXFLAGS = -Wno-macro-redefined -Wno-unused-variable -Wno-unused-function -Wno-unused-local-typedefs -Wno-unknown-pragmas -Wno-c++11-inline-namespace
@tjpalanca
tjpalanca / create-joyplot.R
Created August 1, 2017 15:45
Create Articles vs Reactions Joyplot Animation
# Creating joyplot at: https://github.com/tjpalanca/facebook-news-analysis/raw/master/figs/09-reactions-vs-articles.gif
# Full rmarkdown file at: https://github.com/tjpalanca/facebook-news-analysis/blob/master/src/02-fb-topic-modeling.Rmd
# Prepare dataset for joy plot
posts_classification.dt %>%
inner_join(
posts.dt %>%
select(
document = post_id,
news_page = page_name,
@tjpalanca
tjpalanca / get-census-data.R
Created June 12, 2016 11:32
Download and process 2015 Philippines Census Data into tidy format
# Process 2015 Philippines Census Data into tidy format
# contact@tjpalanca.com | 2016-06-12
# Load necessary libraries
library(dplyr); library(purrr); library(stringr) # data munging
library(readxl) # reading excel documents
# Main function
GetCensusBarangayData <- function() {
# Download files