Skip to content

Instantly share code, notes, and snippets.

@Cipa
Cipa / modx-evo-trees.php
Created August 23, 2010 20:04 — forked from chucktrukk/modx-evo-trees.php
document tree in evo
<?php
if( ! function_exists('pPrint') ) {
function pPrint($arr, $return = false){
$output = '<pre>'.print_r($arr, TRUE).'</pre>';
if ($return)
return $output;
else
echo $output;
}
}
@Cipa
Cipa / gist:4176156
Created November 30, 2012 14:39 — forked from madrobby/gist:4161897
Retina screen media query
@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) {
/* Retina rules! */
}
@Cipa
Cipa / deploy.sh
Created June 14, 2020 23:17 — forked from BenSampo/deploy.sh
Laravel deploy script
# Change to the project directory
cd /home/forge/domain.com
# Turn on maintenance mode
php artisan down
# Pull the latest changes from the git repository
# git reset --hard
# git clean -df
git pull origin master