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
#!/usr/bin/env php | |
<?php | |
$file = $argv[1]; | |
$contents = file_get_contents($file); | |
/** @var $patterns */ | |
$patterns = [ | |
/** @lang PhpRegExp */ | |
'~<\?= ([^?]+);? \?>~m' => '{{ $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
function State() { | |
this.actions = {}; | |
this.subscriptions = []; | |
this.history = []; | |
} | |
State.prototype.subscribe = function(element, action, callback) { | |
this.subscriptions[action] = this.subscriptions[action] || []; | |
this.subscriptions[action].push(function(data) { | |
callback.apply(element, data); |
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
commands: | |
01_add_blackfire_repo: | |
command: "sudo yum install -y pygpgme && wget -O - 'http://packages.blackfire.io/fedora/blackfire.repo' | sudo tee /etc/yum.repos.d/blackfire.repo" |
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
<target name="fork-underscores"> | |
<input propertyname="theme.name">What do you want to name your _s theme (eg mythemename)?</input> | |
<copy todir="wp-content/themes/${theme.name}"> | |
<fileset dir="wp-content/themes/_s"> | |
<exclude name=".git" /> | |
<exclude name=".git/*" /> | |
</fileset> | |
<filterchain> | |
<replaceregexp> | |
<regexp pattern="'_s'" replace="'${theme.name}'" ignoreCase="true"/> |
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
/** | |
* Be Responsive | |
* | |
* These mixins can be called in media queries to generate | |
* breakpoint-specific versions of various classes | |
*/ | |
// Proportional Grid | |
.be-grid( @bp: 0 ) { | |
(~".be-full-bp@{bp}") { |
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
/* | |
Format is .be-[behaviour]-bp[n] | |
Assumptions: | |
- Breakpoints are defined numerically rather than by device (because we want to be device agnostic). | |
- bp0 is always the base breakpoint | |
- Mobile / essentials first development (ie. each sequential bp[n] overrides bp[n-1] ) | |
- The properties that are affected are not defined in other definitions. | |
If they are there are potential problems with specificity and we want to | |
avoid !important. |
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
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
*/ | |
$args = array( |
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
.ir { | |
border:0; | |
font: 0/0 a; | |
text-shadow: none; | |
color: transparent; | |
background-color: transparent; | |
} |