Today I Learned

TIL, 2017-05-31

  • You can run Linux commands interpolated like this: git commit -m \"`ls -l | sed -n 1p\` haha\" to run the command and show it as the output.
  • Linux interpolation done only if surrounded by “”, not ‘’.
  • Markdown: Escape backtick with double ` (` `).
  • JSON.pretty_generate is a thing.
  • Deferred execution: Reference. AR will build queries in sections, evaluating the final statement until a later time.

Kaminari:

  • rails g kaminari:views
  • app/views/kaminari/paginator.
  • It knows I use slim. Lol.

This project is maintained by daryllxd