Before submitting your first release, identify your Github repo id on Github API at:
https://api.github.com/repos/{user}/{repo}| # ipak function: install and load multiple R packages. | |
| # check to see if packages are installed. Install them if they are not, then load them into the R session. | |
| ipak <- function(pkg){ | |
| new.pkg <- pkg[!(pkg %in% installed.packages()[, "Package"])] | |
| if (length(new.pkg)) | |
| install.packages(new.pkg, dependencies = TRUE) | |
| sapply(pkg, require, character.only = TRUE) | |
| } |
| [Adblock Plus 2.0] | |
| ! Version: | |
| ! Title: Distractions and clickbait filter | |
| ! Last modified: 2018-07-24 | |
| ! Expires: 7 days (update frequency) | |
| ! Homepage: https://github.com/endolith/clickbait | |
| ! Redirect: https://raw.githubusercontent.com/endolith/clickbait/master/clickbait.txt | |
| ! This URL: https://raw.githubusercontent.com/endolith/clickbait/master/clickbait.txt | |
| ! License: https://github.com/endolith/clickbait/blob/master/LICENSE.txt |
| # library() or require() only load one package at a time | |
| # but... | |
| Packages <- c("dplyr", "ggplot2", "rstan", "readr") | |
| lapply(Packages, library, character.only = TRUE) | |
| # this loads as many as you put in 'Packages'. They need to be installed first, of course. |
| license: bsd-3-clause |
| #!/usr/bin/env python3 | |
| """ | |
| License: MIT License | |
| Copyright (c) 2023 Miel Donkers | |
| Very simple HTTP server in python for logging requests | |
| Usage:: | |
| ./server.py [<port>] | |
| """ | |
| from http.server import BaseHTTPRequestHandler, HTTPServer |
| #!/bin/bash | |
| fileid="FILEIDENTIFIER" | |
| filename="FILENAME" | |
| curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}" > /dev/null | |
| curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename} |
| #!/bin/bash | |
| # Copyright (c) 2019, Craig P Hicks | |
| # content licensed as CC BY-NC-SA | |
| # CC BY-NC-SA details at https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode | |
| # This program depends upon 'xdotool' installed as Ubuntu 18.04 managed package | |
| # xdotool project source can be found at: | |
| # https://github.com/jordansissel/xdotool | |
| # https://www.semicomplete.com/projects/xdotool/ |
| library(tidycensus) | |
| library(ggiraph) | |
| library(tidyverse) | |
| library(patchwork) | |
| vt_income <- get_acs( | |
| geography = "county", | |
| variables = "B19013_001", | |
| state = "VT", | |
| year = 2019, |