Author: Chris Lattner
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
/* | |
ericasadun.com | |
Sometimes letting go doesn't mean saying goodbye | |
*/ | |
prefix operator ++ | |
prefix operator -- | |
postfix operator ++ |
This guide assumes you have the emmet
and language-babel
packages already installed in Atom
- Open the
keymap.cson
file by clicking onAtom -> Keymap…
in the menu bar - Add these lines of code to your keymap:
'atom-text-editor[data-grammar~="jsx"]:not([mini])':
Picking the right architecture = Picking the right battles + Managing trade-offs
- Clarify and agree on the scope of the system
- User cases (description of sequences of events that, taken together, lead to a system doing something useful)
- Who is going to use it?
- How are they going to use it?
//========================================================== | |
// CUSTOM JAVASCRIPT CONSOLE | |
// built by jakub fiala | |
// | |
// this small script intercepts the standard console methods | |
// and provides a way of accessing their messages, | |
// as well as stack traces, which is really cool. | |
// it formats the stack traces for popular browsers | |
// | |
// contributions welcome! |
A lot of important government documents are created and saved in Microsoft Word (*.docx). But Microsoft Word is a proprietary format, and it's not really useful for presenting documents on the web. So, I wanted to find a way to convert a .docx file into markdown.
On a mac you can use homebrew by running the command brew install pandoc
.
#!/bin/bash | |
if [[ ! "${#}" == 2 ]] ; then | |
echo "Please provide input and output directories, and no other arguments." | |
exit 1 | |
fi | |
input="${1}" | |
output="${2}" |
/// To use reduce() to sum a sequence, we need | |
/// | |
/// - a zero (identity) element | |
/// - an addition operator | |
protocol Summable { | |
/// Identity element for this type and the + operation. | |
static var Zero: Self { get } | |