Hot tips are spicy lil' nuggets related to web development and tooling that I share on my twitter account. I've logged them here to make them easier to find.
Page 32 of 46
π₯ Use console.dir(el) to see an element's properties + prototype instead of the element itself
π₯ Skip Youtube pre-roll ads with: $('video').currentTime = $('video').duration
π₯ Use ES6 destructuring to convert an array argument into variables when you define your function
π₯ What's the deal with flexbox stretching images? Use align-self: center; on your <img> to fix.
π₯ OS X Tip: Most apps will let you β + Click the title bar to view and open parent folders
π₯ Quick Flexbox Tip Video
π₯ Super handy CSS Clip Path generator β
π₯ Express' res.format() is a nice way to handle both HTML form submits and JSON API requests in a single request
π₯ 2 neat things about <img> when src fails. You can:
π
π₯ Use object-fit:cover; on <img> and <video> to get that background-size: cover; effect
Hacking Cheap Smart Photo Frames into a Family Dashboard