Skip to content

Instantly share code, notes, and snippets.

@yossorion
yossorion / what-i-wish-id-known-about-equity-before-joining-a-unicorn.md
Last active April 15, 2025 22:49
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

@srdjan
srdjan / 100+ different counter apps...
Last active May 6, 2024 05:13
100+ different js counter apps...
100+ different js counter apps...
@rgbkrk
rgbkrk / sql-mixin.md
Last active December 20, 2024 05:36
Turning lodash into declarative SQL

Lodash has a sweet feature called a mixin that lets you alias function names. Below here I alias names that we're used to using in SQL to (roughly) equivalent functions in lodash.

_.mixin({
  select: _.map,
  from: _.chain,
  where: _.filter,
  groupBy: _.sortByOrder,
})
@ffoodd
ffoodd / improved-sr-only.markdown
Last active June 8, 2025 19:00
Improved .sr-only

Improved .visually-hidden

Theorically bulletproof CSS class for visually hide anything and keep it accessible to ATs.

A Pen by ffoodd on CodePen.

License.

@mthadley
mthadley / .projections.json
Last active October 21, 2022 16:14
A configuration for using vim-projectionist with jest. I was looking for this but couldn't find it anywhere.
{
"**/__tests__/*.js": {
"alternate": "{}.js",
"type": "test"
},
"*.js": {
"alternate": "{dirname}/__tests__/{basename}.js",
"type": "source"
}
}

This document has moved!

It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.

@ezl
ezl / Thirty Percent Feedback.md
Last active March 18, 2025 19:02
Thirty Percent Feedback by Jason Freedman (42 Floors)

Thirty Percent Feedback

By Jason Freedman in Startups and Uncategorized on February, 26, 2014 Source: https://42floors.com/blog/startups/thirty-percent-feedback (Copied in case this resource disappears)


I remember showing school essays to my dad growing up. He’s a really good writer and so getting his feedback before I turned a paper in usually helped me make some improvements. But whenever I’d watch him reading over the pages, I would secretly be hoping he’d read it and say that everything is perfect. I obviously thought it was already perfect, otherwise I wouldn’t have shown it to him.

@joncardasis
joncardasis / Storing-Images-On-Github.md
Last active May 12, 2025 11:14
Storing Images and Demos in your Repo

Storing Images and Demos in your Repo

In this quick walkthough you'll learn how to create a separate branch in your repo to house your screenshots and demo gifs for use in your master's readme.

How to

1. Clone a fresh copy of your repo

In order to prevent any loss of work it is best to clone the repo in a separate location to complete this task.

2. Create a new branch

Create a new branch in your repo by using git checkout --orphan assets

import test from 'ava';
import Rx from 'rxjs/Rx';
import {createStore} from 'redux';
test('should be observable', t => {
const reducer = (state, action) => {
if (action.type === 'increment') {
return {...state, counter: state.counter + 1}
}
const t = require("tcomb");
// imstruct is a tcomb type builder that internally builds an
// Immutable.Record object, but applies tcomb's type system to it
const imstruct = require("../util/imstruct");
const Person = imstruct({
name: t.String,
age: t.Number
});