You are operating with limited time and limited brain power to finish your programs with enough time to go outside and breath fresh air Knowing this, its way too tedious to type out commands like git diff –cached which can be shortcut to gdc with an alias. An alias will allow you to create shortcuts with your own command…
All posts by theptrk
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…
Setting up a new computer (Mac – applications)
Change these System Preferences immediately 1 – MAX OUT your Keyboard key repeat and shorten your delay 2 – Change your CAPS LOCK into (^ Control). Think about it, unless you are constantly yelling on the internet, you never really use CAPS LOCK Download these Apps * Alfred this is so much better than spotlight…
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…
Symbolic Links, symlinks, files that point to files
Sometimes, when working with directories and files, we want to reference the same file in a different directory. This is most apparent when you want to upload dotfiles and config on github so you can backup and pull down these onto any computer. Lets get started and you’ll see how my setup will help your…
Your first commit – How to start using git
git is a version control system that allows you to keep track of all the changes you make to your code, writing and anything text. Instead of saving the current state of your files, git saves the changes you make to files. Imagine you create a file called “my_file.txt” and later this to your git…
Coton Rain
First Swift App! Check out Coton Rain (US)
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…