The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
<?php | |
add_filter( 'http_request_host_is_external', 'explicitly_allow_same_host_requests_for_import' ); | |
function explicitly_allow_same_host_requests_for_import(){ | |
return true; | |
} |
wget -r -A=jpeg,jpg,bmp,png,gif,tiff,xpm,ico http://www.somesite.com/ |
<a data-toggle="modal" data-target=".bs-modal-lg">Open Modal</a> | |
<div class="modal fade bs-modal-lg video" tabindex="-1" role="dialog" aria-labelledby="VideoModal" aria-hidden="true"> | |
<div class="modal-dialog modal-lg"> | |
<div class="modal-content" data-video-url="//player.vimeo.com/video/84747519?portrait=0&byline=0&title=0&autoplay=1"> | |
<div class="fve-video-wrapper fve-image-embed fve-thumbnail-image youtube" style="padding-bottom:56.25%;"> | |
<iframe src="" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> | |
</div> | |
</div> | |
</div> |
/* Using this, a web page designed for a 720p screen can be simply scaled up to 1080p (or vice-versa) */ | |
/* This works especially well when the graphics are SVG and or icon fonts */ | |
body { zoom: 1.5;} /* 1280 * 1.5 = 1920 |
http://i4.ytimg.com/vi/ZwUa-olnPV0/sddefault.jpg?w=640&h=360&feature=em-upload_owner&sigh=3SP2iJ7rMvM9pVfZGbrD-ubbk6w |
<div class="fve-video-wrapper"> | |
<iframe width="100%" height="100%" src="https://www.youtube.com/embed/kCIRQuHdBgQ?wmode=transparent&modestbranding=1&autohide=1&showinfo=0&rel=0" frameborder="0" allowfullscreen></iframe> | |
</div> |
<!--[if lte IE 8]> <img src="../octopus.png"> <![endif]--> | |
<!--[if gt IE 8]><!--> <img src="../octopus.svg"> <!--<![endif]--> |
[color] | |
ui = true | |
[alias] | |
st = status | |
c = commit -m | |
a = add | |
aa= !git add -u && git add . && git status | |
co = checkout | |
cob = checkout -b | |
up = !git fetch origin && git rebase origin/master |
$(ps auxww|sed -n '/sed -n/d;/mysqld /{s/.* \([^ ]*mysqld\) .*/\1/;p;}') --verbose --help|grep '^log' |