Skip to content

Instantly share code, notes, and snippets.

View jcheng5's full-sized avatar

Joe Cheng jcheng5

View GitHub Profile
@johnjohndoe
johnjohndoe / vcard-split.py
Last active December 25, 2023 06:30 — forked from umrashrf/vcard-split.py
Python script to split Google contacts into individual VCF files.
#!/usr/bin/python
#split vcf files
import re
working_dir = '/home/umair/Documents/Contacts/'
input_file = 'contacts starred 26-06-2014.vcf'
output_seed = 'contacts-part-'
vcards_per_file = 1
@jcheng5
jcheng5 / debounce.R
Last active October 20, 2021 04:54
reactive debounce for Shiny
# Returns a reactive that debounces the given expression by the given time in
# milliseconds.
#
# This is not a true debounce in that it will not prevent \code{expr} from being
# called many times (in fact it may be called more times than usual), but
# rather, the reactive invalidation signal that is produced by expr is debounced
# instead. This means that this function should be used when \code{expr} is
# cheap but the things it will trigger (outputs and reactives that use
# \code{expr}) are expensive.
debounce <- function(expr, millis, env = parent.frame(), quoted = FALSE,
@aronatkins
aronatkins / install-rstudio-daily.sh
Last active February 10, 2022 08:54
Install RStudio daily build on OSX/macOS or Ubuntu Linux
#!/bin/bash
#
# Installs the latest RStudio daily desktop build for OSX/macOS and Ubuntu(amd64)
#
# https://support.rstudio.com/hc/en-us/articles/203842428-Getting-the-newest-RStudio-builds
set -e
install_macos_daily() {
REDIRECT_URL="https://www.rstudio.org/download/latest/daily/desktop/mac/RStudio-latest.dmg"
@jeroen
jeroen / readme.md
Last active January 17, 2017 17:21
Testing R packages on Solaris
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
anonymous
anonymous / .profile
Created May 17, 2013 00:53
# For R
export PATH="/usr/local/bin:/usr/ccs/bin:/usr/sfw/bin:$PATH"
export CC="cc -xc99"
export CFLAGS="-O -xlibmieee"
export CPPFLAGS="-I/opt/csw/include"
export LDFLAGS="-L/opt/csw/lib -R/opt/csw/lib"
export PKG_CONFIG_PATH="/opt/csw/lib/pkgconfig"
export F77=f95
export FFLAGS=-O