- Toptal
- Nexton Labs
- BairesDev
- Nearsure
- trio.dev - Brazilian CEO
- stackbuilders
- We Work Remotely
- Remote.co
Recommendations of unit types per media type:
Media | Recommended | Occasional use | Infrequent use | Not recommended |
---|---|---|---|---|
Screen | em, rem, % | px | ch, ex, vw, vh, vmin, vmax | cm, mm, in, pt, pc |
em, rem, % | cm, mm, in, pt, pc | ch, ex | px, vw, vh, vmin, vmax |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//PHP got the JSON_PRETTY_PRINT option for json_encode in 5.4, and I had to use a older version of PHP, | |
// So I made this | |
function json_pretty_encode($arr, $indent=" ", $characters=array(", ", ": "), $depth=0, $eol=PHP_EOL){ | |
//You'd think that with the plethora of functions PHP has for array operations, they'd have one to check | |
// if an array is associative or not | |
// Now, I know what your saying "Oh, but, ALL arrays in PHP are associative!" Suck it, you know what I mean | |
$is_assoc = (array_keys($arr) !== range(0,count($arr)-1)); | |
end($arr); |