Monday, May 16, 2016


Something that returns the same result when run multiple times ad it does when run once on any input.

Sunday, October 18, 2015

punctuation on left when direction: rtl

When using direction: rtl the puctuation is on the left instead of the right.

<div style='direction: rtl;'>Hi!</div>


Tuesday, June 9, 2015

Tab to Search

calculate height of a truncated element in JS

// get current height
currentHeight = $box.height();

// get height with auto applied
autoHeight = $box.css('height', 'auto').height();

// reset height and revert to original if current and auto are equal
$box.css('height', currentHeight);