Skip to content

Instantly share code, notes, and snippets.

<!--- Provide your ticket number and a general summary of your changes in the Title above e.g. [PSE-295] Add credit card dialog -->
## Description
<!--- Add a link to your ticket: -->
<!--- https://airtasker.atlassian.net/browse/WK-234 -->
<!--- Describe your changes in detail; Add context -->
<!--- Why is this change required? What problem does it solve? -->
<?php
// Gravity Forms Custom Addresses (Australia)
add_filter('gform_address_types', 'australian_address', 10, 2);
function australian_address( $address_types, $form_id ) {
$address_types['australia'] = array(
'label' => 'Australia', //labels the dropdown
'country' => 'Australia', //sets Australia as default country
'zip_label' => 'Post Code', //what it says
'state_label' => 'State', //as above
@driesg
driesg / MMCustomKeyBindings.plist
Last active December 30, 2015 05:59
Custom keybindings for MailMate. Some my own, others from various sources
{
// Message Actions
"o" = "openMessages:"; // Don't really use this. ⌘o still works
"j" = "markAsJunk:";
"J" = "markAsNotJunk:";
"s" = "toggleFlag:";
"m" = "toggleReadState:";
"a" = ( "setTag:", "\\Seen", "archive:"); // archive and mark read
"A" = ( "selectWithFilter:", "#thread-id = ${#thread-id}","setTag:", "\\Seen", "archive:" ); // Select whole thread, mark as read and archive
"=" = ( "moveToMailbox:",'/Action');
{
// Keybindings to emulate Fastmail shortcuts in MailMate
// From: http://fastmail.wikia.com/wiki/KeyboardShortcuts
// Created by Jeffrey Horn <hello@jrhorn.me>
"n" = "nextMessage:";
"p" = "previousMessage:";
"j" = "nextThread:";
"k" = "previousThread:";
"o" = "openMessages:";
@driesg
driesg / mq.css
Created October 11, 2012 04:03 — forked from chriscoyier/mq.css
@media only screen and (min-width: 320px) {
/* Small screen, non-retina */
}
@media
only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px),
only screen and ( min--moz-device-pixel-ratio: 2) and (min-width: 320px),
only screen and ( -o-min-device-pixel-ratio: 2/1) and (min-width: 320px),
@driesg
driesg / dabblet.css
Created September 23, 2012 23:58
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/