Today I Learned

11-02-18

TIL

  • to use Array.prototype.some and Array.prototype.every, which will stop execution once the returned value is true or false correspondingly

03-02-18

TIL

  • to use git-submodule and share the same code base for two different projects of mine
  • about Naomi Parker Fraley, the model of the iconic “We Can Do It!” poster

02-02-18

TIL

  • to use -webkit-font-smoothing: antialiased to fix the issue with FontAwesome icons being blurry if used as CSS pseudo background

31-01-18

TIL

20-01-18

TIL

  • that Webpack has a tool to analyze a webpack’ed module

04-01-18

TIL

  • that CSS has a text-decoration-skip-ink: auto (supported by Chrome for now) to skip glyph descenders for text-decoration: underline.

24-12-17

TIL

  • to properly tests async/await functions with Mocha
  • a shit load of vim stuff

14-12-17

TIL

  • that in Google Chrome, typing badidea into a page with an HSTS error will temporarily bypass the error

11-12-17

TIL

  • that if you’re testing a JS-based app with generators (e.g. async/await), you’ll need require('babel-polyfill') prior to booting the app to make sure the polyfill is loaded before the generator is initialized. This will prevent the regeneratorRuntime is not defined error.

03-12-17

TIL

  • that the word “piggy” in “pigg bank” originates from pygg, an orange colored clay commonly used during the Middle Ages as a cheap material for pots to store money. Over time, these types of jars disappeared, but the word combination remained. Soon “pygg” turned into ”pig,” and people started making piggy banks shaped like pigs.