Skip to content

Instantly share code, notes, and snippets.

View zdk123's full-sized avatar

Zachary Kurtz zdk123

View GitHub Profile
#!/usr/bin/env Rscript
args = commandArgs(trailingOnly=TRUE)
message("Installing necessary libraries if not already installed")
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
if (!requireNamespace("mzR", quietly = TRUE))
install.packages("mzR")
if (!requireNamespace("data.table", quietly = TRUE))
install.packages("data.table")
@svecon
svecon / Bellet-2014-SML-notes.txt
Created August 28, 2017 12:15
Notes for Bellet 2014 survey
Mahalanobis distance dM(x,x′)^2 = (x − x′)^T M (x − x′)
where M is cone of symmetric PSD d*d matrix
Must-link / cannot-link constraints (sometimes called positive / negative pairs):
S = {(xi, xj) : xi and xj should be similar},
D = {(xi, xj) : xi and xj should be dissimilar}.
Relative constraints (sometimes called training triplets):
R = {(xi, xj , xk) : xi should be more similar to xj than to xk}.
Optimization problem that has the following general form: min M { ℓ(M, S,D,R) + λR(M) }
@grncdr
grncdr / index.js
Created September 23, 2012 21:36 — forked from anonymous/index.js
Observable object properties in javascript
/**
* A quick proof-of-concept of observable objects using JS accessors
*
* Base observable objects are created with * `new Observable(names)`, where
* `names` is an array of property names that should be observable.
*
* Instances are created by calling .create(initial_data) on the resulting
* base object, and observed with their .observe(handler) method. See the bottom
* of this file for an example.
*/
@chitchcock
chitchcock / 20111011_SteveYeggeGooglePlatformRant.md
Created October 12, 2011 15:53
Stevey's Google Platforms Rant

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real