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
| #!/bin/bash | |
| # Bash script to install latest version of ffmpeg and its dependencies on Ubuntu 12.04 or 14.04 | |
| # Inspired from https://gist.github.com/faleev/3435377 | |
| # Remove any existing packages: | |
| sudo apt-get -y remove ffmpeg x264 libav-tools libvpx-dev libx264-dev | |
| # Get the dependencies (Ubuntu Server or headless users): | |
| sudo apt-get update |
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 WPMemeShortcode; | |
| /** | |
| * The WordPress Meme Shortcode admin page. | |
| * | |
| * @author Carl Alexander | |
| */ | |
| class AdminPage |
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
| server { | |
| # Redirect any subdomain to the root domain | |
| # to be captured by next server block | |
| server_name *.example.com; | |
| return 301 $scheme://example.com$request_uri; | |
| } | |
| server { | |
| root /var/www; | |
| index index.html index.htm; |
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 AssetRegister { | |
| public $scripts_base_uri; | |
| public $styles_base_uri; | |
| protected $scripts; | |
| protected $stylesheets; |
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
| // Disable Hover on Scroll Class | |
| // Add these helpers to your utlity.css | |
| // http://www.thecssninja.com/javascript/pointer-events-60fps | |
| .disable-hover, | |
| .disable-hover * { | |
| pointer-events: none !important; | |
| } | |
| // ---------------------------------------------------------------------- |
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 ) |
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 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
| <?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
| // $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; |