A mixin for writing @font-face rules in SASS.
Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.
@include font-face(Samplino, fonts/Samplino);
var EventSystem = (function() { | |
var self = this; | |
self.queue = {}; | |
return { | |
publish: function (event, data) { | |
var queue = self.queue[event]; | |
if (typeof queue === 'undefined') { |
on alfred_script(q) | |
tell application "Sequel Pro" to quit | |
tell application "Dash" to quit | |
tell application "Tower" to quit | |
tell application "iTerm" to quit | |
tell application "Sublime Text 2" to quit | |
end alfred_script |
To remove a submodule you need to:
<?php | |
/** | |
* This little class records how long it takes each WordPress action or filter | |
* to execute which gives a good indicator of what hooks are being slow. | |
* You can then debug those hooks to see what hooked functions are causing problems. | |
* | |
* This class does NOT time the core WordPress code that is being run between hooks. | |
* You could use similar code to this that doesn't have an end processor to do that. | |
* |
<?php | |
/** | |
* Iterates over results of a query, split into many queries via LIMIT and OFFSET | |
*/ | |
class QueryIterator implements Iterator { | |
var $limit = 500; | |
var $query = ''; | |
var $global_index = 0; |
<?php | |
/* | |
* Plugin Name: WordPress.com Watermark Image Uploads | |
* Description: Applies a watermark image of your choosing to all uploaded images. | |
* Author: Alex Mills | |
* Author URI: http://automattic.com/ | |
*/ | |
class WPcom_Watermark_Uploads { |
// Listen for orientation changes | |
window.addEventListener("orientationchange", function() { | |
// Announce the new orientation number | |
alert(window.orientation); | |
}, false); | |
// Listen for resize changes | |
window.addEventListener("resize", function() { | |
// Get screen size (inner/outerWidth, inner/outerHeight) | |
<?php | |
// TODO: don't run if Jetpack is active | |
add_action( 'plugins_loaded', function() { | |
if ( ! file_exists( WP_PLUGIN_DIR . '/jetpack/' ) ) | |
return; | |
$modules = array( | |
'modules/contact-form.php', | |
'modules/shortcodes.php', |