Code used in The Woodwork: Pork Tocino
View 1_install_ansible_20_from_source
$ git clone git://github.com/ansible/ansible.git --recursive | |
$ cd ansible | |
$ source ./hacking/env-setup | |
$ sudo pip install paramiko PyYAML Jinja2 httplib2 six | |
$ make | |
$ sudo make install |
View config.js
// This variation just injects the extracted data right into the relationships and also stores things in | |
// ._meta and ._included instead of just .included | |
// it (like restangular) requires either lodash or underscorejs | |
.config(function(RestangularProvider) { | |
// add a response interceptor | |
RestangularProvider.addResponseInterceptor(function(data, operation, what, url, response, deferred) { | |
var extractedData = data.data; |
View patch_picturefill_to_ignore_feeds.php
<?php | |
function apply_picturefill_to_content_not_feed($html, $cache = null) { | |
if ( is_feed() ) { return $html; } | |
return Picturefill_WP::get_instance()->picturefill_wp_apply_to_html($html, $cache); | |
} | |
remove_filter( 'the_content', array( Picturefill_WP::get_instance(), 'picturefill_wp_apply_to_html' ), apply_filters('picturefill_wp_the_content_filter_priority', 11) ); | |
add_filter ( 'the_content, 'apply_picturefill_to_content_not_feed', apply_filters('picturefill_wp_the_content_filter_priority', 11) ); |
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |