View maybe_ssl_url
function maybe_ssl_url($url) | |
{ | |
if (!is_ssl()) { return $url; } | |
return str_ireplace('http://', 'https://', $url); | |
} |
View gist:c2dc5541094e99c72ee4
/* | |
vadjust plugin. | |
adjust top margin on vertically centered elements. | |
var $vadj = $('[data-vadjust="true"]'); | |
if ($vadj.length > 0) { $vadj.vadjust(); } | |
*/ | |
;(function($) { | |
$.fn.vadjust = function(options) |
View robot.php
<?php | |
//While <= number of files to create | |
$count = 1; | |
while($count <= 18) { | |
if($count === 1) { | |
$filename = 'index.html'; | |
} | |
else { | |
$filename = $count.'.html'; |
View is.css
/* before :is() */ | |
button.focus, | |
button:focus { | |
... | |
} | |
/* after :is() */ | |
button:is(.focus, :focus) { | |
... | |
} |
View bootstrap-3-vert-offset-shim.css
/* | |
Include this after bootstrap.css. Add class of | |
vert-offset-top-value or vert-offset-bottom-value | |
to your Bootstrap 3 default rows to prevent row content | |
from touching the row content above or below. | |
*/ | |
/* Vertical Offset Bottom */ | |
.vert-offset-top-12{ | |
margin-top: 12em; |
View rsync.sh
# Simple with recursion and info/progress | |
rsync -havzP --stats remote@host:/your/path ~/Desktop/your/folder | |
#Custom Port | |
rsync -chavzP --stats -e "ssh -p 1999" remote@host:/path/to/files ~/Desktop/local/folder |