Instantly share code, notes, and snippets.

Currently setting my status

Ben Porter FreedomBen

View GitHub Profile

Password sharing at SimpleNexus

Hello there! You may be trying to share a password with a coworker.
If that is you, you're in luck my friend! This document will help you to do so in a safe and secure manner.

You have a few options:

  1. Tell the person the password in real life
  2. Call the person on the phone and pass it that way
  3. Write it down on a piece of paper and give it to them. Make sure to destroy the paper afterward. Don't just throw it away!
View pre-commit
# This pre-commit hook will prevent you from committing any line (or filename) containing
# the string NOCOMMIT. Use that tag in comments around source code you want to avoid
# accidentally committing, like temporary IP addresses or debug printfs.
# To add it to an existing repository, save it to .git/hooks/pre-commit (or append, if
# that file already exists). Remember to make executable (chmod +x ...)
# To automatically add this pre-commit hook to every repository you create or clone:
View actionlist.vim
--- Actions ---
$Copy <M-C>
$Cut <M-X> <S-Del>
$Delete <Del> <BS> <M-BS>
$Paste <M-V>
$Redo <M-S-Z> <A-S-BS>
$SearchWeb <A-S-G>
$SelectAll <M-A>
$Undo <M-Z>

Here at Bloomfire, we’re loving building new components with React. We’re even going all in with using ES6 modules and inline styles. (‘Inline styles?!’ I hear you say? Don’t knock it ’til you’ve tried it.)

There’s a lot of cool stuff we can do with CSS that we can’t do with inline styles, though; and that’s where Radium comes in. Radium not only provides a handy way to style :hover, :focus, and :active states, but it also deftly handles media queries. If you’re using inline styles in React and not using Radium, you should. I’ll give you a minute to go look it over – here’s the link again.

Back? Okay.

We create a style object in each of our React components, which we then reference in the JSX below. Here’s a super-stripped-down example:

// [myAwesomeButton.js]

Keybase proof

I hereby claim:

  • I am freedomben on github.
  • I am freedomben ( on keybase.
  • I have a public key whose fingerprint is CD29 50AF BCC3 673B 4EA0 15A9 1559 13A0 D679 AF92

To claim this, I am signing this object:

import sys
import os
REMOVE_FLAG = '<remove>'
COMMENT_STRING = '# Added by debug script. To remove, rerun script with -c|--cleanup flag'
Rails.logger.debug("In method:".blue + " - " +
"#{self.nil? ? : self.class.to_s}".green +