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
# jobs/echo_job/spec | |
--- | |
name: echo_job | |
# ... | |
consumes: | |
- name: other_guy_in | |
type: other_guy_type | |
# jobs/provider/spec | |
--- |
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
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') |
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
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; | |
} |