Skip to content

Instantly share code, notes, and snippets.

@corygibbons
corygibbons / framer-get-set.coffee
Created Mar 23, 2017
Framer getters and setters
View framer-get-set.coffee
class Foo extends Layer
@define "bar",
get: ->
return @_bar + " was his name"
set: (value) ->
@_bar = value
@corygibbons
corygibbons / woocommerce-image-attributes.php
Created Feb 13, 2016
WooCommerce change image attributes with wp_get_attachment_image_attributes filter
View woocommerce-image-attributes.php
add_filter('wp_get_attachment_image_attributes', 'change_attachement_image_attributes', 20, 2);
function change_attachement_image_attributes( $attr, $attachment ){
// Get post parent
$parent = get_post_field( 'post_parent', $attachment);
// Get post type to check if it's product
$type = get_post_field( 'post_type', $parent);
if( $type != 'product' ){
return $attr;
View keybase.md

Keybase proof

I hereby claim:

  • I am corygibbons on github.
  • I am corygibbons (https://keybase.io/corygibbons) on keybase.
  • I have a public key whose fingerprint is 54F9 734A DEFB 0996 B948 6ECB 446B 972E 6228 65AA

To claim this, I am signing this object:

View gist:0c6739d27c22b77f565e
{% if page.handle != 'contact-us' %}
LINE 12
LINE16
{% endif %}
View slack-themes
Shopify
#31373D,#272C30,#272C30,#FFFFFF,#4A5664,#96A7B6,#94E864,#FF576A
#232831,#232831,#343D47,#DFE1E8,#232831,#8EA1B4,#78FA94,#FA82A4
Saturn
#201632,#201632,#4E4167,#DBD36E,#4E4167,#B4A1D6,#A6E22E,#E2454B
#002832,#002832,#00B49C,#FFFFFF,#004152,#FFFFFF,#F2CD00,#F2CD00
Blue
@corygibbons
corygibbons / gist:4526382
Last active Dec 11, 2015
Function to echo a posts image urls
View gist:4526382
<?php function display_images_in_list($size = thumbnail) {
if($images = get_posts(array(
'post_parent' => get_the_ID(),
'post_type' => 'attachment',
'numberposts' => -1, // show all
'post_status' => null,
'post_mime_type' => 'image',
'orderby' => 'menu_order',
'order' => 'ASC',
View fushigi.html
<!DOCTYPE html>
<html>
<head>
<title>{Title}</title>
<link rel="shortcut icon" href="{Favicon}">
<link rel="alternate" type="application/rss+xml" href="{RSS}">
{block:Description}
<meta name="Description" content="{MetaDescription}" />
{/block:Description}