Monday, March 4, 2019


  • “Disable Cache” is on the network tab of Chrome’s devtools. It only disables the cache while the devtools are open.
  • The em unit is usually the default browser font size.
  • $() is jquery. Much better than the old getElement* syntax.
  • Commas in css selectors means apply the rule to all. Spaces means hierarchy - only applies the rules to the latter elements that are children of the former elements.
  • Css classes aren’t applied in the order you put them on the element, they’re applied in the order they’re defined in the source css document!
  • Removing an element from an array by value is way more complex than it needs to be.
  • Jinja injects newlines stupidly!
  • Remember, var is function-scoped. The new ones for es6, const and let, are block scoped. Const is constant. Let can be reassigned (different than mutable).
  • Supercontest
    • I’m running Bootstrap 3.3.7.
    • Fixed the rounded corners in the table.
    • Smartly added the click functionality, restricted to the team columns, integrated with a submit button.
    • Submit button now smartly appears and disappears based on picks.
    • Used notify.js instead of flash.js to use the less-imposing messages rather than alerts.
    • Warnings appear on >5 picks and opposing-team picks now.