This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Unfollow all Twitter accounts that aren't following you back | |
# | |
# Twitter API: | |
# https://developer.twitter.com/en/docs/twitter-api | |
# https://github.com/python-twitter-tools/twitter | |
# https://developer.twitter.com/en/portal/projects/new | |
# | |
# Authentication: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Additional_repositories | |
Author | |
Authors@R | |
Biarch | |
BugReports | |
BuildVignettes | |
Built | |
ByteCompile | |
Classification/ACM | |
Classification/ACM-2012 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
calc3 <- function(sets) | |
{ | |
sets <- check_sets(sets) | |
set_lengths <- vapply(sets, length, 0) | |
set_order <- order(set_lengths) | |
sets <- sets[set_order] | |
set_lengths <- set_lengths[set_order] | |
n_sets <- length(sets) | |
set_names <- names(sets) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env Rscript | |
# Do CRAN packages that depend on the stats package use a copyleft license? | |
# https://twitter.com/cimentadaj/status/1154420408508043264 | |
Sys.Date() | |
## [1] "2019-07-26" | |
library(stringr) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example Snakemake pipeline | |
# | |
# This example snakefile performs the following steps: | |
# | |
# * Downloads an Excel file | |
# * Converts the file to CSV format | |
# * Plots a result | |
# * Creates a summary report | |
# | |
# LICENSE: CC0. Do what you want with the code, but it has no guarantees. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env Rscript | |
# This example code implements the fork and pull request workflow for GitHub | |
# directly from R using the packages gh and git2r. gh provides an R interface to | |
# the GitHub REST API v3, and git2r provides an R interface to libgit2. It | |
# submits the Pull Request to the practice repository Spoon-Knife. | |
# | |
# The following sequence of steps are performed: | |
# | |
# authenticate -> fork -> clone -> branch -> edit -> add -> commit -> push -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env conda-execute | |
# Helper script to identify conda-forge R packages that have more recent | |
# versions released on CRAN. | |
# | |
# Usage: | |
# | |
# conda execute conda-forge-cran.R | |
# | |
# or |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HGEN 473 - Genomics | |
# Spring 2017 | |
# Tuesday, May 9 & Thursday, May 11 | |
# | |
# RNA-seq analysis with R/Bioconductor | |
# | |
# John Blischak | |
# | |
# Last updated: 2020-04-08 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NAME := main | |
all: $(NAME).pdf | |
%.pdf: %.tex | |
sed -i s/'\\includeonly'/'%\\includeonly'/ $(NAME).tex | |
pdflatex -shell-escape $(NAME) | |
# Insert additional calls to pdflatex or bibtex here, | |
# depending on the complexity of your document |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install local copy of R from source. | |
# To run: | |
# bash build-r.sh >& log.txt | |
# Version of R to install (must be part of the R 3.0 series) | |
VERSION=3.3.2 | |
# Directory to install R. If not already present, creates bin, lib and share |
NewerOlder