This assumes you've got docker-machine installed, running, and can do docker run
docker run --name travis-debug -dit quay.io/travisci/travis-ruby /sbin/init
docker exec -it travis-debug bash -l
// Heavy-handed way to force IE7 & IE8 to respect :last-child. | |
// Note: Using jQuery. Adjust to suit your library, etc. | |
// | |
// Style via... | |
// | |
// element:last-child, | |
// element.last-child { | |
// /* Style here */ | |
// } | |
// |
@main-font-size: 16px; | |
.x-rem (@property, @value) { | |
// This is a workaround, inspired by https://github.com/borodean/less-properties | |
@px-fallback: @value * @main-font-size; | |
-: ~`(function () { return ';@{property}: @{px-fallback}'; }())`; | |
-: ~`(function () { return ';@{property}: @{value}rem'; }())`; | |
} |
/* global ReactRedux, Redux, ReactDOM */ | |
// "Getting Started with Redux" (by Dan Abramov) | |
// https://egghead.io/series/getting-started-with-redux | |
// This file on JSBin (by Jesse Buchanan): | |
// http://jsbin.com/wuwezo/74/edit?js,console,output | |
//////////////////////////////////////////////// | |
// |
/* | |
The following code will require @gmail.com as domain | |
for user registrations. | |
You can change @gmail.com to any provider you want. | |
The code below requires a user email to be collected during registration | |
*/ | |
add_action('um_before_new_user_register', 'require_google_email_for_signup'); |
To install, you need to have the WordPress i18n library on your computer. Check it out using SVN:
sudo svn co http://i18n.svn.wordpress.org/tools/trunk/ /usr/lib/wpi18n
You don't have to put the library in /usr/lib/wpi18n
, but if you don't put it there, make sure to set the $WP_I18N_LIB
environment variable in your .bashrc
file (with no trailing slash):
export WP_I18N_LIB="/path/to/i18n/lib"
<?php | |
#Add a query var to sniff requests | |
add_filter( 'query_vars', 'my_query_var_callback', 10, 1 ); | |
function my_query_var_callback( $vars ){ | |
$vars[] = 'dynamic_js'; | |
return $vars; | |
} | |
#Dynamic JavaScript | |
add_rewrite_rule( '^assets/js/dynamic\.js$', 'index.php?dynamic_js=1', 'top' ); //Note the hidden query variable |
file:www/wp-content/themes/my-site-child//*.php||file:www/wp-content/themes/my-site-child//*.css||file:www/wp-content/themes/my-site-child//*.js||file:www/wp-content/plugins/my-site//*.php||file:www/wp-content/plugins/my-site//*.css||file:www/wp-content/plugins/my-site//*.js |
#!/bin/bash | |
# args | |
MSG=${1-'deploy from git'} | |
BRANCH=${2-'trunk'} | |
# paths | |
SRC_DIR=$(git rev-parse --show-toplevel) | |
DIR_NAME=$(basename $SRC_DIR) | |
DEST_DIR=~/Sites/wp-plugins/$DIR_NAME/$BRANCH |
@if $include-html-grid-classes != false { | |
/* Styles for screens that are atleast 768px and max width 1024px */ | |
@media #{$small} and (max-width: 1024px) { | |
@for $i from 1 through $total-columns { | |
.medium#{-$i} { @include grid-column($columns:$i,$collapse:null,$float:false); } | |
} | |
@for $i from 0 through $total-columns - 1 { |