Skip to content

Instantly share code, notes, and snippets.

View leonardonormando's full-sized avatar

Leonardo Normando leonardonormando

  • eureka!
  • Brazil, Ceara, Fortaleza
View GitHub Profile
@leonardonormando
leonardonormando / export-to-csv.gs
Last active March 31, 2017 22:15 — forked from mderazon/export-to-csv.gs
Google apps script to export to individual csv files all sheets in an open spreadsheet
// From http://stackoverflow.com/questions/1353684
// Returns 'true' if variable d is a date object.
function isValidDate(d) {
if ( Object.prototype.toString.call(d) !== "[object Date]" )
return false;
return !isNaN(d.getTime());
}
// Test if value is a date and if so format
// otherwise, reflect input variable back as-is.
@leonardonormando
leonardonormando / .screenrc-main-example
Last active May 25, 2018 08:09 — forked from ChrisWills/.screenrc-main-example
A nice default screenrc
# GNU Screen - main configuration file
# All other .screenrc files will source this file to inherit settings.
# Author: Christian Wills - cwills.sys@gmail.com
# Allow bold colors - necessary for some reason
attrcolor b ".I"
# Tell screen how to set colors. AB = background, AF=foreground
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
@leonardonormando
leonardonormando / SILVA_walkthrough.R
Last active July 9, 2018 17:57 — forked from grabear/SILVA_walkthrough.R
Parsing .biom files with SILVA formatted annotations using phyloseq
# This functionality has been tested and a PR has been pulled with phyloseq here:
# https://github.com/joey711/phyloseq/pull/854
#
# While the function has been vetted, the maintainers are very busy and the PR has not
# yet been added to the main package. Below i've added some detail to explain how to parse
# your silva data. It's quite easy....
# Save the R script in a directory and source it
source("parse_silva_taxonomy_128")
"{
"data": [
{
"mode": "lines",
"type": "scattergl",
"marker": {
"color": "rgba(31,119,180,1)",
"line": {
"color": "rgba(31,119,180,1)"
}