TIL 2020-08-01

  1. Python collections.defaultdict - Takes a type not a value. It will initialize based on the default value for that type.

  2. Git Last Commit ID - git log --format="%H" -n 1 | cat outputs the last commit ID.

  3. Node.js Command Line Arguments - Node.js uses the process object to access command line arguments.