Skip to content

Instantly share code, notes, and snippets.

View westlywright's full-sized avatar

Westly Wright westlywright

View GitHub Profile
@westlywright
westlywright / pre-commit-eslint
Created April 20, 2020 16:17 — forked from linhmtran168/pre-commit-eslint
Pre-commit hook to check for Javascript using ESLint
#!/bin/sh
STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep ".jsx\{0,1\}$")
if [[ "$STAGED_FILES" = "" ]]; then
exit 0
fi
PASS=true

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

Keybase proof

I hereby claim:

  • I am westlywright on github.
  • I am nullvoid (https://keybase.io/nullvoid) on keybase.
  • I have a public key whose fingerprint is 4961 C38E 3672 BC4C 08E4 717B C7CF 0D22 4CAE AA30

To claim this, I am signing this object:

/* v----- Do not change anything between here
* (the DRIVERNAME placeholder will be automatically replaced during build) */
define('ui/components/machine/driver-interoutevdc/component', ['exports', 'ember', 'ui/mixins/driver'], function (exports, _ember, _uiMixinsDriver) {
exports['default'] = _ember['default'].Component.extend(_uiMixinsDriver['default'], {
driverName: 'interoutevdc',
/* ^--- And here */
// Write your component here, starting with setting 'model' to a machine with your config populated
bootstrap: function() {
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
@westlywright
westlywright / api-post-snippet.js
Created October 17, 2012 19:14
Appular Api Post Snippet
// Used in the Appular framework we use @ work - https://github.com/adamwdraper/Appular
// Snippet used in Dash Snippet manager
// Dash doesn't support import of snippets so named JS for syntax highlighting and indication of what language should in set in Dash
// Also delete these comments and any "@placeholder" mentions if you dont use Dash
Api.post(@cursor, {
data: {
},
userAuth:
}, callback: function (data, error) {
@westlywright
westlywright / api-get-snippet.js
Created October 17, 2012 16:43
Appular Api Get Snippet
// Used in the Appular framework we use @ work - https://github.com/adamwdraper/Appular
// Snippet used in Dash Snippet manager
// Dash doesn't support import of snippets so named JS for syntax highlighting and indication of what language should in set in Dash
// Also delete these comments and any "@placeholder" mentions if you dont use Dash
Api.get(@cursor, {
data: {
},
userAuth:
}, callback: function (data, error) {