This file contains hidden or 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
<!doctype html> | |
<title>draw grayscale ramp</title> | |
<meta name="viewport" content="width=device-width"> | |
<style> | |
.ramp { | |
height: 300px; | |
position: relative; | |
} | |
.ramp > div { | |
position: absolute; |
This file contains hidden or 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
<?xml version='1.0'?> | |
<!DOCTYPE fontconfig SYSTEM '/etc/fonts/fonts.dtd'> | |
<fontconfig> | |
<match target="font"> | |
<edit name="hintstyle" mode="assign"> | |
<const>hintslight</const> | |
</edit> | |
</match> | |
</fontconfig> |
This file contains hidden or 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
//quick and dirty, does not consider all function params and this yet | |
Array.prototype.find = function (predicate) { | |
return this.reduce(function(prev, cur){return predicate(cur) ? cur : prev }) | |
} |
This file contains hidden or 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
<!doctype html> | |
<title>Retina Images with CSS content</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> | |
<style> | |
@media all and (-webkit-device-pixel-ratio: 1.5) { | |
/* e. g. android hi res devices | |
see: http://developer.android.com/guide/webapps/targeting.html#DensityCSS | |
*/ | |
#people9 { content: url(//lorempixum.com/300/225/people/9/); } |
NewerOlder