Skip to content

Instantly share code, notes, and snippets.

@fengyuentau
fengyuentau / readme.md
Last active October 23, 2024 22:54
Enable X11 forward for ssh to load images from remote server on MacOS Mojave

Enable X11 forward to load images from remote server on MacOS Mojave

Steps

  1. Install Xquartz to get X11 support on MacOS. You can google Xquartz and download it from its official site, or install using HomeBrew.

    brew cask install xquartz
  2. Launch Xquartz. Go to Preference -> Security, click the box Allow connections from clients. NOTE: You have to lauch Xquartz with Allow connections from clients enable everytime you want to ssh to remote server with X11 forwarding support.

@djnavarro
djnavarro / wear-it-purple.R
Last active August 31, 2018 02:07
wear it purple day animation
library(tidyverse)
library(e1071)
library(gganimate)
# take a vector of inputs and return a binary
# matrix corresponding to the character
read_letter <- function(...) {
cbind(
matrix(data = c(...), nrow = 9, ncol = 5, byrow = TRUE),
matrix(data = rep(0,9), nrow = 9, ncol = 1)
@jhollist
jhollist / bibify_pkgs.R
Last active March 14, 2018 21:49
An R function to turn a vector of package names into a bibliorgraphy
#' Generate a bibliography of packages
#'
#' This function creates an output bibliography from an input character vector
#' of package names. The primary use case for this function is when working
#' with other authors and you need to provide a reference list of packages used.
#'
#' @param pkgs A character vector of packages
#' @param csl A csl file used to format the output bibliography. Good place to
#' look for these is \url{https://github.com/citation-style-language/styles}
#' @param append_bib Existing \code{.bib} file to append package citations to.
@seandavi
seandavi / gist:1308c15707d443f1771c3cadeef78547
Last active November 15, 2017 23:19
script skeleton to mine tweets for software projects
# Mine tweets from a meeting using the meeting hashtag.
#
# Looks for URLs in tweets that match:
# - github
# - github pages (docs)
# - bitbucket
# - CRAN
# - BitBucket
#
# Results in a tidy data.frame that can be further manipulated
@seandavi
seandavi / Genome_Informatics_2017_software.csv
Last active November 8, 2018 14:33
Software list mined from twitter feed for CSHL Genome Informatics meeting, 2017
url name user type
https://github.com/dewyman/TranscriptClean TranscriptClean dewyman github
https://github.com/dewyman/TALON TALON dewyman github
https://github.com/Illumina/strelka strelka Illumina github
https://github.com/gymreklab/GangSTR GangSTR gymreklab github
https://github.com/dewyman/talon talon dewyman github
https://github.com/haghshenas/PhISCS PhISCS haghshenas github
https://github.com/alshai/r-index r-index alshai github
https://github.com/shenwei356/bwt bwt shenwei356 github
https://github.com/gymreklab/gangstr gangstr gymreklab github