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
<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> |
wget -r -A=jpeg,jpg,bmp,png,gif,tiff,xpm,ico http://www.somesite.com/ |
<?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; | |
} |
# Find listening port 22 on the network | |
nmap -T5 -n -p 22 --open --min-parallelism 100 192.168.0.0/24 | |
# edit hostname and hosts to change the hostname. | |
sudo nano /etc/hostname | |
sudo nano /etc/hosts | |
# edit the static IP address in the interfaces file. | |
sudo nano /etc/network/interfaces |
# Update wp_options table | |
UPDATE wp_options SET option_value = REPLACE(option_value,'example.com','example.dev'); | |
# Update wp_posts table | |
UPDATE wp_posts SET guid = REPLACE(guid,'example.com','example.dev'); |
@mixin gallery-items($size) { | |
.item { | |
float: left; | |
.thumbnail { | |
margin-bottom: $size/4; | |
text-align: center; | |
width: $size; | |
height: $size; |
function openPopup(href, title, width, height){ | |
var left = screen.availLeft + screen.width/2 - width/2, | |
top = screen.height/2 - height/2; | |
window.open(href, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=' + width + ', height=' + height + ', top=' + top + ', left=' + left); | |
}; |
find . -type f -name "file-pattern*" -exec sh -c 'echo mv "$0" "${0/find/replace}"' '{}' \; | |
#Remove the echo when you're sure this does what you want. |
$(document).on('click', 'a[href*=#]', function(event){ | |
event.preventDefault(); | |
var targetId = this.hash; | |
var theTarget = $(targetId); | |
var customOffset = 0; | |
switch( targetId ){ | |
case '#target1': | |
case '#target2': | |
customOffset = -80; |