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
@media (min--moz-device-pixel-ratio: 1.5), | |
(-o-min-device-pixel-ratio: 3/2), | |
(-webkit-min-device-pixel-ratio: 1.5), | |
(min-device-pixel-ratio: 1.5), | |
(min-resolution: 144dpi), | |
(min-resolution: 1.5dppx) { | |
/* http://mir.aculo.us */ | |
} |
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
// detects ie and serves an ie specific page | |
if (isset($_SERVER['HTTP_USER_AGENT']) && | |
(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false)) { | |
include "ie/index.html"; | |
return; |
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
$cursor = $collection->find(); | |
$array = iterator_to_array($cursor); | |
$keys = array(); | |
foreach ($array as $k => $v) { | |
foreach ($v as $a => $b) { | |
$keys[] = $a; | |
} | |
} | |
$keys = array_values(array_unique($keys)); | |
// assuming first key is MongoID so skipping it |
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
$(function(){ | |
$("#buttons a").each(function() { | |
var href = $(this).attr("href"); | |
if(href == '') { | |
var imgSRC = $("img", this).attr("src"); | |
var imgSPL = imgSRC.split('.'); | |
var imgCOM = imgSPL[0] +'-g.'+ imgSPL[1]; | |
$("img", this).attr("src", imgCOM); | |
$(this).removeAttr('href'); | |
} |
NewerOlder