Skip to content

Instantly share code, notes, and snippets.

View mboldt's full-sized avatar

Mikey Boldt mboldt

  • Shopify
  • Eagan, MN
View GitHub Profile
# jobs/echo_job/spec
---
name: echo_job
# ...
consumes:
- name: other_guy_in
type: other_guy_type
# jobs/provider/spec
---
@mboldt
mboldt / crop-and-resize.py
Last active August 10, 2016 17:50
Python crop and resize image
from PIL import Image
im = Image.open('original.jpg')
imc = im.crop((0, 0, 400, 400))
imr = imc.resize((300, 300), Image.LANCZOS)
imr.save('cropped-and-resized.jpg')
@mboldt
mboldt / gist:1c4a5387bc98853923c0
Created July 8, 2015 16:04
Override genesis site icon with jetpack site icon.
add_filter( 'genesis_pre_load_favicon', 'check_jetpack_site_icon' );
function check_jetpack_site_icon() {
if (function_exists( 'jetpack_has_site_icon' ) && jetpack_has_site_icon()) {
return jetpack_site_icon_url();
}
return false;
}