git gotchas

Gotcha 1: git config? “Oops, I’ve been using git without setting my git config?” If youdon’t set your computers git config, it’ll likely choose a default email for you – something like Patrick@MacBookAir.com. That means, even if you push this to Github, your account will not get the commits. How to config your git author…

vim: how to turn on syntax highlighting

Normal mode How to turn on syntax highlighting for your current session :syntax on .vimrc configuration How to default syntax to “on” for all vim sessions Remember to always  back up your config files, simply add this to your .vimrc syntax on Try different colors How to cycle through available color schemes for your current session…

Set up your dotfiles, config files

Sometimes your computer explodes. Sometimes your roommate spills water on it. If you keep your config files uploaded to github/gitlab, you can avoid recreating your dotfiles (.vimrc, .bash_profile, .sh, .zshrc) and reconfiguring every laptop and virtual machine you encounter. * this is assuming you have already version controlled your configs (examples: bash, vim) Step 1: Upload…

What are the Mac symbols?

Mac Symbols If you are loyal to your 2013 Macbook Air, here’s the new mac keyboard buttons. What is the mac symbol for Control? Control (or Ctrl) ⌃ The Control key was originally responsible for entering control characters (or non-printing characters) in terminal applications. The first mac did not have a control key but it was later…

Black Scholes Formula in Rust

Our team at Hack Reactor is building a web framework in Rust and for the first day, we took a step back and had a one day hackathon to get sped up. Naturally I wanted to benchmark calculators and that afternoon I tested Rust against Python and Javascript. Results below. Black Scholes Merton Introduced in…

This post is not about Backbone

We’re gonna talk about video games. Imagine you’re playing Mario Kart on a four person split screen. There are four Yoshis on the screen for each player. How many Yoshis should we model? The obvious answer is four: there are four Yoshis on the screen, so there must be four Yoshis. The problem is that this answer misses…