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 April 7, 2024 22:55
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

@malarkey
malarkey / Contract Killer 3.md
Last active May 8, 2024 16:02
The latest version of my ‘killer contract’ for web designers and developers

When times get tough and people get nasty, you’ll need more than a killer smile. You’ll need a killer contract.

Used by 1000s of designers and developers Clarify what’s expected on both sides Helps build great relationships between you and your clients Plain and simple, no legal jargon Customisable to suit your business Used on countless web projects since 2008

…………………………