View gist:1c4a5387bc98853923c0
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; | |
} |
View crop-and-resize.py
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') |
View gist:494ec49878a1d9558ec13e203ec74811
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 | |
--- |