Clojure Destructuring Tutorial and Cheat Sheet
Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.
Vectors and Sequences
Fix SVG in
<img> tags not scaling in IE9, IE10, IE11
IE9, IE10, and IE11 don't properly scale SVG files added with
img tags when
height attributes are specified. View this codepen on the different browsers.
Image heights will not scale when the images are inside containers narrower than image widths. This can be resolved in 2 ways.
sed in bash to remove width and height attributes in SVG files
As per this answer on Stackoverflow, the issue can be resolved by removing just the
|# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)|
|# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos|
|# Alot of these configs have been taken from the various places|
|# on the web, most from here|