Skip to content

Instantly share code, notes, and snippets.

View jmalonzo's full-sized avatar
📈
(ノ´・ω・)ノ ミ Ⅎoɔ∩sIuƃ

Jan Alonzo jmalonzo

📈
(ノ´・ω・)ノ ミ Ⅎoɔ∩sIuƃ
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jmalonzo on github.
  • I am jmalonzo (https://keybase.io/jmalonzo) on keybase.
  • I have a public key whose fingerprint is 154A 1731 7226 5926 6F05 BBAB 15B9 23C8 AD61 224D

To claim this, I am signing this object:

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@jmalonzo
jmalonzo / geocode.gs
Created January 15, 2017 05:50
Geocode custom function for Google Sheets
/**
* Geocode address using Google Maps
*
* @param address the address to geocode
* @return the geocoded address (possibly approximate)
*/
function geocode(address) {
var response = Maps.newGeocoder().geocode(address);
var geom = response.results[0].geometry;
return geom.location.lat + ", " + geom.location.lng;

Latency numbers every programmer should know

L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns             
Compress 1K bytes with Zippy ............. 3,000 ns  =   3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns  =  20 µs
SSD random read ........................ 150,000 ns  = 150 µs

Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs

@jmalonzo
jmalonzo / downgradephantomjsbrew.md
Last active March 12, 2017 20:56
Download phantomjs brew package

How to downgrade homebrew packages (e.g. phantomjs 1.9.2 -> 1.9.1)

$ brew uninstall phantomjs
$ brew versions phantomjs
$ git checkout 2196213 /usr/local/Library/Formula/phantomjs.rb
$ brew install phantomjs
@jmalonzo
jmalonzo / LICENSE.txt
Created September 29, 2011 09:56 — forked from p01/LICENSE.txt
Sudoku Solver in 140bytes
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Mathieu 'p01' Henri <http://www.p01.org/releases/>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@jmalonzo
jmalonzo / index.html
Created August 29, 2011 03:50 — forked from mbostock/.block
Date Ticks
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.25.0"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.time.js?1.25.0"></script>
</head>
<body>
<script type="text/javascript">
var format = d3.time.format("%m/%d"),
(color-theme-taylor)
;; we don't have imaxima installed on the Mac
(if (string-match "linux" system-configuration)
(require 'imaxima))
;; Set to the location of your Org files on your local system
(setq org-directory "~/Dropbox/Emacs/data")
;; Set to the name of the file where new notes will be stored
(setq org-mobile-inbox-for-pull "~/Dropbox/Emacs/data/default.org")
;; Set to <your Dropbox root directory>/MobileOrg.

"Other developers are just like us - weird"

"If you ever need to deploy Django, you're good. If you know Capistrano and Unicorn they've got rip-offs of all that stuff."

"I think we should all admit we're horrible coders and move on" "We're all drug addicts - we're fighting methods..."

"It's easy to learn to play the guitar and be able to play Bob Dylan and Weezer and never get better."

"This is basically a talk that was given 30 years ago. We just have to keep giving it every few years because young guys come along and forget it."