This file contains hidden or 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
| <!-- http://benalman.com/projects/jquery-urlinternal-plugin/ --> | |
| <script src='<?php bloginfo('template_directory'); ?>/js/jquery.ba-urlinternal.min.js'></script> | |
| <!-- http://www.asual.com/jquery/address/ --> | |
| <script src='<?php bloginfo('template_directory'); ?>/js/jquery.address-1.3.min.js'></script> | |
| <script> | |
| // Original JavaScript by Chris Coyier | |
| // Updated October 2010 by Stewart Heckenberg & Chris Coyier |
This file contains hidden or 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
| # when I write new blog posts I usually have a temporary folder called new_post on my desktop | |
| # that I place images I want to upload to amazon s3 (which is distributed as CF) and then | |
| # get the appropriate URLs to put the images in my blog post | |
| # I usually save files as some_slug.png and some_slug_1200.png | |
| # with the latter being a larger version (1200px wide) of the first. | |
| # a typical upload will include 20 files. 2 versions of some (sm and lg), and some orphans | |
| # so this compares filenames and if it detects a larger version of a file, | |
| # it links the the smaller image to the larger image (i use fancyzoom on my site) | |
| # if not, it just links to the image |
This file contains hidden or 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
| alias server='open http://localhost:8000 && python -m SimpleHTTPServer' |
This file contains hidden or 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
| #!/usr/bin/env python | |
| function server() { | |
| local port="${1:-8000}" | |
| open "http://localhost:${port}/" | |
| python SimpleHTTPServer "$port" | |
| } |
This file contains hidden or 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
| // $mq-mobile-portrait : 320px !default; | |
| // $mq-mobile-landscape : 480px !default; | |
| // $mq-tablet-portrait : 640px !default; -- changed because i want my blog content is around this wide, not 768. you should let content & design determine your breakpoints | |
| // $mq-tablet-landscape : 1024px !default; | |
| // $mq-desktop : 1382px !default; | |
| $mq-mobile-portrait : 20em !default; | |
| $mq-mobile-landscape : 30em !default; | |
| $mq-tablet-portrait : 40em !default; | |
| $mq-tablet-landscape : 64em !default; |
This file contains hidden or 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
| <?php | |
| // TypeKit | |
| wp_enqueue_script( 'elp-typekit', '//use.typekit.net/YOUR_KIT_NUMBER_ID.js'); | |
| function elp_typekit_inline() { | |
| if ( wp_script_is( 'elp-typekit', 'done' ) ) { ?> | |
| <script type="text/javascript">try{Typekit.load();}catch(e){}</script> | |
| <?php } | |
| } | |
| add_action( 'wp_head', 'elp_typekit_inline' ); |
This file contains hidden or 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
| <?php namespace PaintedCloud\WP\Classes; | |
| if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
| class CustomPost { | |
| protected $textdomain; | |
| protected $posts; | |
| public function __construct( $textdomain ) |
This file contains hidden or 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
| { | |
| "cmd": ["php", "-d", "error_prepend_string=''", "-d", "error_append_string=''", "-d", "xdebug.default_enable='Off'", "-f", "$file"], | |
| "file_regex": ".*(?: in )(.*) on line ([0-9]*)", | |
| "selector": "source.php" | |
| } |
This file contains hidden or 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
| <?php namespace PaintedCloud\WP\Classes; | |
| if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
| class CustomTaxonomy { | |
| protected $textdomain; | |
| protected $taxonomies; | |
| public function __construct ( $textdomain ) |
OlderNewer