Skip to content

Instantly share code, notes, and snippets.

View smartgamer's full-sized avatar
🎯
Focusing

Charlie smartgamer

🎯
Focusing
  • Boston, MA
View GitHub Profile
@smartgamer
smartgamer / .block
Created September 22, 2022 16:24 — forked from Fil/.block
Walmart's growth stand-alone
height: 650

A complete list of books, articles, blog posts, videos and neat pages that support Data Fundamentals (H), organised by Unit.

Formatting

If the resource is available online (legally) I have included a link to it. Each entry has symbols following it.

  • ⨕⨕⨕ indicates difficulty/depth, from ⨕ (easy to pick up intro, no background required) through ⨕⨕⨕⨕⨕ (graduate level textbook, maths heavy, expect equations)
  • ⭐ indicates a particularly recommended resource; 🌟 is a very strongly recommended resource and you should look at it.
@smartgamer
smartgamer / Snakemake
Created October 17, 2020 16:18 — forked from mikelove/Snakefile
my Salmon Snakemake file
RUNS, = glob_wildcards("/pine/scr/m/i/milove/{run}_1.fastq.gz")
SALMON = "/proj/milovelab/bin/salmon-1.3.0_linux_x86_64/bin/salmon"
ANNO = "/proj/milovelab/anno"
rule all:
input: expand("quants/{run}/quant.sf", run=RUNS)
rule salmon_index:
@smartgamer
smartgamer / linebreak.md
Created July 4, 2020 02:32
Line breaks in markdown
Hello  (<-- two spaces)
World

Hello
World


MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@smartgamer
smartgamer / README.md
Created January 5, 2020 00:54 — forked from joyrexus/README.md
Perl one-liners

Hi:

perl -e 'print "hello world!\n"'

A simple filter:

perl -ne 'print if /REGEX/'

Filter out blank lines (in place):

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@smartgamer
smartgamer / pasteUsingSepAndCollapseInR.R
Created February 14, 2019 21:19 — forked from briandk/pasteUsingSepAndCollapseInR.R
Understanding `sep` and `collapse` in R using `paste()
# The difference between the `sep` and `collapse` arguments
# in paste can be thought of like this:
#
# paste can accept multiple *vectors* as input, and will
# concatenate the ith entries of each vector pairwise
# (or tuplewise), if it can.
#
# When you pass paste multiple vectors, sep defines what
# separates the entries in those tuple-wise concatenations.
#
@smartgamer
smartgamer / generator.md
Created January 13, 2019 14:48 — forked from klmr/generator.md
Python-like generators in R

A little experiment using restarts.

(And while we’re at it, let’s torture R’s syntax a little.)

![screenshot][]

In the following we will be using R’s “restarts” feature to implement the state machine that drives generators in languages such as Python. Generators allow lazily generating values on demand: a consumer invokes a generator, and consumes values as they are produced. A new value is only produced once the previous one has been consumed.