Skip to content

Instantly share code, notes, and snippets.

@manthrax
manthrax / gist:96f5edadabe2da3ec39d94e807eaf096
Created November 29, 2021 15:42
Uint8Array to hex string.. and back... and some tests....
let b2h = []
for(let i=0;i<256;i++)b2h[i]=i.toString(16).padStart(2,"0")
let arrayToHex=(a)=>{
let hex = new Array(a.length)
for(let i=0,l=a.length;i<l;i++)hex[i]=b2h[a[i]]
return hex.join('')
}
let h2b = {}
for(let i=0;i<256;i++)h2b[i.toString(16).padStart(2,"0")]=i;

On Wealth

Mike Karnjanaprakorn @mikekarnj

Twitter Thread

Over time, I've changed my views on wealth. When I was in my early 20s, I wrote it off as something I would figure out later. When I started a company at 27, I figured that my stock as founder would be good enough. I was wrong in both. Here's what I've learned…

@yossorion
yossorion / what-i-wish-id-known-about-equity-before-joining-a-unicorn.md
Last active June 25, 2024 07:29
What I Wish I'd Known About Equity Before Joining A Unicorn

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

Contract Killer

Het populaire opensource contract voor web designers en developers door Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post