Skip to content

Instantly share code, notes, and snippets.

@sthembi
sthembi / dabblet.css
Created October 20, 2012 16:27
CSS3 borders and box-shadow experiment - passport
/**
* CSS3 borders and box-shadow experiment - passport
*/
body {
/*background: #f06;
background: linear-gradient(45deg, #f06, yellow);*/
min-height: 100%;
}
button {margin:40px;}
@sthembi
sthembi / dabblet.css
Created October 24, 2012 17:10
CSS3 borders and box-shadow experiment - passport left & right
/**
* CSS3 borders and box-shadow experiment - passport left & right
*/
body {
/*background: #f06;
background: linear-gradient(45deg, #f06, yellow);*/
min-height: 100%;
min-width:1100px;
}
#container {
@sthembi
sthembi / gist:4053144
Created November 11, 2012 00:26 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@sthembi
sthembi / LICENSE.txt
Created November 24, 2012 09:03 — forked from eliperelman/LICENSE.txt
Preloader140
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@sthembi
sthembi / dabblet.css
Created February 7, 2013 19:30
CSS3 borders and box-shadow experiment - passport left & right
/**
* CSS3 borders and box-shadow experiment - passport left & right
*/
body {
/*background: #f06;
background: linear-gradient(45deg, #f06, yellow);*/
min-height: 100%;
min-width:1100px;
}
#container {
@sthembi
sthembi / dabblet.css
Created February 7, 2013 20:07
Testing psuedo elements
/**
* Testing psuedo elements
*/
section {
width: 940px;
margin:0px 100px;
position:relative;
}
@sthembi
sthembi / remove_wp_width_height.php
Last active December 12, 2015 08:19
Remove image width and height declaration in WordPress
//add to functions.php
//remove inline width and height added to images
add_filter( 'post_thumbnail_html', 'remove_thumbnail_dimensions', 10 );
add_filter( 'image_send_to_editor', 'remove_thumbnail_dimensions', 10 );
// Removes attached image sizes as well
add_filter( 'the_content', 'remove_thumbnail_dimensions', 10 );
function remove_thumbnail_dimensions( $html ) {
$html = preg_replace( '/(width|height)=\"\d*\"\s/', "", $html );
return $html;
}
@sthembi
sthembi / dabblet.css
Created February 13, 2013 16:10
Testing psuedo elements
/**
* Testing psuedo elements
*/
section {
width: 940px;
margin:0px 100px;
position:relative;
}
@sthembi
sthembi / dabblet.css
Created February 13, 2013 16:56
Text-shadow for text outlines
/**
* Text-shadow for text outlines
*/
body{
background: #392d0b;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
}
#myelement {
@sthembi
sthembi / dabblet.css
Created February 13, 2013 19:54
Tucked corners with one element
/**
* Tucked corners with one element
From LeaVerou - love this!!
*/
html {
background: url('http://www.red-team-design.com/wp-content/uploads/2012/10/wood.png')
}
body {