Skip to content

Instantly share code, notes, and snippets.

View yonicd's full-sized avatar

yonicd

View GitHub Profile
@vnijs
vnijs / snapper-app.R
Last active May 10, 2020 19:20
Generate a shiny-app screenshot using snapper and download it using shinyFiles, shiny, or snapper
library(shiny)
# remotes::install_github("yonicd/snapper")
# remotes::install_github("thomas85p/shinyFiles")
library(snapper)
library(base64enc)
library(png)
library(shinyFiles)
js <- '
function get_img_src() {
@hrbrmstr
hrbrmstr / heroku-pg.r
Last active October 25, 2021 01:15
Connect R (#rstats) to heroku PostgreSQL — https://www.heroku.com/postgres
library(processx)
library(RPostgres)
library(httr)
library(dbplyr)
library(tidyverse)
# this example assumes you've created a heroku postgresql
# instance and have the app name (in this example, "rpgtestcon").
# use the heroku command-line app
@willprice
willprice / .travis.yml
Last active June 15, 2024 04:29
How to set up TravisCI for projects that push back to github
# Ruby is our language as asciidoctor is a ruby gem.
lang: ruby
before_install:
- sudo apt-get install pandoc
- gem install asciidoctor
script:
- make
after_success:
- .travis/push.sh
env:
@davfre
davfre / git_cheat-sheet.md
Last active August 11, 2024 11:12
git commandline cheat-sheet