Skip to content

Instantly share code, notes, and snippets.

View chrisvanpatten's full-sized avatar

Chris Van Patten chrisvanpatten

View GitHub Profile
<?php
add_filter( 'terms_clauses', 'cvp_query_term_alias', 10, 3 );
/**
* Allow querying the term alias field.
*
* @param array $query_clauses
* @param array $taxonomies
* @param array $args
<h2>Vinegar Substitute Guide</h2>
When substituting vinegars for one another, use the same amount as the amount of vinegar called for in the recipe. But use this primer on types of vinegar to choose one most similar to the vinegar called for in your recipe. For some types of vinegar we have specific substitution ideas.
<ul><li><strong>Cider vinegar </strong>is made from fermented apple cider and is mild with a subtle hint of apple flavor. It is the most versatile of the vinegars and makes a good substitute for almost any other. </li>
<li><strong>White vinegar</strong> is made from distilled grain alcohol with a sour and harsh flavor -- it may overpower more delicate flavors in your cooking.</li>
<li><strong>Fruit vinegars</strong> are usually mild in flavor and slightly sweet. They pair well as dressings for salad and in chicken recipes.</li>
<li><strong>Herb vinegars,</strong> which are infused with fresh herbs while the vinegar is still warm, are savory but subtle. Consider the herb that flavors the vinega
wp.Uploader.queue.on('change', function(image) {
// This event runs whenever the upload percentage changes, so
// we need to check if the image ID has been assigned yet (which
// indicates that the upload has completed).
if (typeof image.attributes.id === 'undefined') {
return
}
// Check for the minimum width and height.
// In a _real_ implementation, these values, and the associated
<?php
$fh = fopen(__DIR__ . '/mytext.txt', 'r');
<?php
$fh = fopen(__DIR__ . '/mytext.txt', 'r');
var fs = require('fs')
var rl = require('readline')
results = []
var source = rl.createInterface({
input: fs.createReadStream(__dirname + '/source')
})
var destination = rl.createInterface({
@chrisvanpatten
chrisvanpatten / README.md
Created December 10, 2018 16:15
Gutenberg component documentation template
@chrisvanpatten
chrisvanpatten / gulpfile.js
Last active June 19, 2017 01:35
Ignore .html extension in local gulp-connect server
var gulp = require('gulp')
var connect = require('gulp-connect')
var connectRewrite = require('connect-modrewrite')
/**
* Serve requests
*/
gulp.task('serve', function () {
connect.server({
root: 'public',