Skip to content

Instantly share code, notes, and snippets.

View corygibbons's full-sized avatar

Cory Gibbons corygibbons

View GitHub Profile
@corygibbons
corygibbons / framer-get-set.coffee
Created March 23, 2017 18:14
Framer getters and setters
class Foo extends Layer
@define "bar",
get: ->
return @_bar + " was his name"
set: (value) ->
@_bar = value
@corygibbons
corygibbons / woocommerce-image-attributes.php
Created February 13, 2016 19:55
WooCommerce change image attributes with wp_get_attachment_image_attributes filter
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;

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:

{% if page.handle != 'contact-us' %}
LINE 12
LINE16
{% endif %}
@corygibbons
corygibbons / slack-themes
Last active March 22, 2016 04:15
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 December 11, 2015 01:49
Function to echo a posts image urls
<?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',
@corygibbons
corygibbons / fushigi.html
Created November 20, 2012 04:50
#tumblr #fushigi
<!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}