Skip to content

Instantly share code, notes, and snippets.

View rec3141's full-sized avatar

R. Eric Collins rec3141

  • University of Alaska Fairbanks
View GitHub Profile
@brantfaircloth
brantfaircloth / rnalater.md
Last active April 13, 2021 14:33
Homebrew RNALater

Disclaimer

Before using this for samples that are precious, you should thoroughly test the solution that you make. The best way to do that would be a side-by-side with commercial RNALater.

Source

The following recipe is from the patent. It always pays to read these.

In a beaker, combine 40 ml 0.5 M EDTA, 25 ml 1M Sodium Citrate, 700 gm Ammonium Sulfate
@jlewin
jlewin / countTabs.js
Last active March 7, 2023 17:21
Count of open tabs in Chrome
chrome.windows.getAll({populate: true}, function(allWindows)
{
console.log(allWindows);
});
@meefen
meefen / lsa_mds.R
Last active September 30, 2019 20:17
Analyze Text Similarity in R: Latent Semantic Analysis and Multidimentional Scaling
# load required libraries
library(tm)
library(ggplot2)
library(lsa)
# 1. Prepare mock data
text <- c("transporting food by cars will cause global warming. so we should go local.",
"we should try to convince our parents to stop using cars because it will cause global warming.",
"some food, such as mongo, requires a warm weather to grow. so they have to be transported to canada.",
"a typical electronic circuit can be built with a battery, a bulb, and a switch.",
@kueda
kueda / d3.phylogram.js
Last active February 23, 2023 11:53
Right-angle phylograms and circular dendrograms with d3. To preview see http://bl.ocks.org/kueda/1036776
/*
d3.phylogram.js
Wrapper around a d3-based phylogram (tree where branch lengths are scaled)
Also includes a radial dendrogram visualization (branch lengths not scaled)
along with some helper methods for building angled-branch trees.
Copyright (c) 2013, Ken-ichi Ueda
All rights reserved.