This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* CSS3 progress bar | |
* desgin: http://dribbble.com/shots/522214-Progress-Bar | |
*/ | |
body { | |
background-image: repeating-linear-gradient(0, #3C3540 0, #3C3540 50%, #38313B 50%, #38313B 100%); | |
background-size: 3px 1px; | |
} | |
.prog-bar { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Lonely Women Cooks For Nobody</title> | |
<link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"> | |
<link rel="schema.DCTERMS" href="http://purl.org/dc/terms/"> | |
<meta name="DC.title" content="Lonely Women Cooks For Nobody<"> | |
<meta name="DC.creator" content="William Clinton (http://www.man-has-his-needs.com/"> | |
<meta name="DC.subject" content="Politics"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## GIT Configuration | |
## Local found at `~/.gitconfig` | |
## Installation: Add snippet to .gitconfig file | |
## Usage: `git invoice` to list recent commits in "pretty format" | |
## Credit: @svizion (http://twitter.com/svizion) | |
[alias] | |
invoice = log --pretty=format:'%ad - %s' --abbrev-commit --date=short |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.input_tiny { | |
width: 50px; | |
} | |
.input_small { | |
width: 100px; | |
} | |
.input_medium { | |
width: 150px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add to functions.php | |
<?php | |
function _remove_script_version( $src ){ | |
$parts = explode( '?', $src ); | |
return $parts[0]; | |
} | |
add_filter( 'script_loader_src', '_remove_script_version', 15, 1 ); | |
add_filter( 'style_loader_src', '_remove_script_version', 15, 1 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Embed PDF File using shortcode | |
// Usage- [embedpdf | |
function embedthepdf($atts, $content = null) { | |
extract(shortcode_atts(array( | |
"id" => 'default-embed', | |
"url" => 'http://samplepdf.com/sample.pdf', | |
"width" => '990px', | |
"height" => '743px' | |
), $atts)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_mime.c> | |
# Text | |
AddType text/css .css | |
AddType application/x-javascript .js | |
AddType text/html .html .htm | |
AddType text/richtext .rtf .rtx | |
AddType text/plain .txt | |
AddType text/xml .xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "What should the Application be called (no spaces allowed e.g. GCal)?" | |
read inputline | |
name=$inputline | |
echo "What is the url (e.g. https://www.google.com/calendar/render)?" | |
read inputline | |
url=$inputline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Bookmarklet by Joshua Canfield (Code Clarity -- www.icodeclarity.com) | |
// Using URI-Valet services | |
javascript:var url = prompt("Enter Domain to check Server Headers");window.open('http://urivalet.com/?'+ url, '_blank'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Tests network status and resets Airport if required | |
# | |
usage() { | |
cat << EOF | |
Usage: $0 options | |
-h HOST host to ping | |
-s <ON|OFF> say out loud: on or off default: OFF |