Skip to content

Instantly share code, notes, and snippets.

View adrianmcli's full-sized avatar
:shipit:
What's happening?

Adrian Li adrianmcli

:shipit:
What's happening?
View GitHub Profile
@adrianmcli
adrianmcli / _thats-so-fetch.md
Created February 19, 2017 04:56
A collection of asynchronous fetching examples with various frameworks and patterns.

Thats So Fetch

A collection of asynchronous fetching examples with various frameworks and patterns.

@adrianmcli
adrianmcli / _counter.md
Last active February 17, 2017 05:18
Increment decrement counters using various frontend frameworks.

Counter Examples

Moved to omg-counters

This is a collection of increment/decrement counters using various frontend frameworks.

The increment/decrement counter is the step between a hello world example and a todo app. Please note that the examples are supposed to be as minimal as possible.

So far we have the following:

// placeholder
@adrianmcli
adrianmcli / counter.re
Created February 14, 2017 21:39
Finished source files for the Reason workshop
module Counter = {
include ReactRe.Component.Stateful;
let name = "Counter";
type state = {count: int};
type props = unit;
let getInitialState _ => {count: 0};
/** increment handler */
let handleIncrement {state} _ => {
Js.log "clicked increment!";
@adrianmcli
adrianmcli / atom-packages.txt
Created February 12, 2017 22:13
Just a list of my atom packages.
atom-beautify@0.29.17
atom-ternjs@0.17.0
atom-typescript@10.1.13
autocomplete-modules@1.6.7
ayu@0.1.0
color-picker@2.2.5
css-snippets@1.1.0
docblockr@0.9.1
emmet@2.4.3
file-icons@2.0.14
@adrianmcli
adrianmcli / reportInterval.js
Created January 30, 2017 01:01
An RxJS example of reporting events that happened every 5 seconds.
// throw these two lines into the markup:
// <button id="btn">Click</button>
// <script src="https://unpkg.com/@reactivex/rxjs/dist/global/Rx.js"></script>
const button = document.querySelector('#btn');
const click$ = Rx.Observable.fromEvent(button, 'click');
click$
.map(() => Date.now())
.bufferTime(5000)
@adrianmcli
adrianmcli / .gitconfig
Last active February 24, 2017 20:37
My Git config file
[color]
ui = true
[user]
name = Adrian Li
email = li.adrianmc@gmail.com
[core]
editor = /usr/bin/vim
excludesfile = /Users/liadrian/.gitignore
[alias]
adc = !git add -A && git commit
@adrianmcli
adrianmcli / .hyper.js
Created January 29, 2017 01:00
My Hyperterm config file.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
@adrianmcli
adrianmcli / .zshrc
Created January 29, 2017 00:59
My zsh config file
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/adrianli/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="robbyrussell"

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