Skip to content

Instantly share code, notes, and snippets.

AllThingsSmitty / columns.css
Last active Oct 1, 2017
Columns with equal height using Flexbox
View columns.css
@import url(;
html {
background: #444;
box-sizing: border-box;
font-family: "Open Sans", sans-serif;
line-height: 1.4;
*, *:before, *:after {
box-sizing: inherit;
View hipchat.js
(function ($) {
// Creates an iframe with an embedded HipChat conversation window.
// Options:
// url - The url to the room to embed; required
// container - The container in which to insert the HipChat panel; required
// timezone - The timezone to use in the embedded room; required
// welcome - A welcome message to display when the room is joined; optional
// noframes - Content to include when iframes are disabled in the browser; optional
tobi-pb /
Last active Sep 2, 2020
Upgrade MAMP to Mysql 5.6
tar xfvz mysql-5.6*
echo "stopping mamp"
sudo /Applications/MAMP/bin/
sudo killall httpd mysqld
echo "creating backup"
larrybotha / A.markdown
Last active Sep 13, 2020
Export multiple artboards in Adobe Illustrator to png, or pdf
View A.markdown

Export multiple Adobe Illustrator artboards to png, jpg, pdf

This is a reference to Matthew Ericson's article Export Illustrator Layers and/or Artboards as PNGs and PDFs in case something happens to happen to the article, and if I just forget where to find the exporter online.


  • Drop MultiExporter.js into /Applications/Adobe\ Illustrator\ CS6/Presets.localized/en_GB/Scripts
  • Restart Illustrator
lgladdy / grunt-sitemap.php
Created Apr 13, 2014
Grunt Sitemap Generator plugin for Wordpress
View grunt-sitemap.php
* Plugin Name: Grunt Sitemap Generator
* Plugin URI:
* Description: Generate a JSON list of every page on a site so it can be used with grunt and uncss. Create a folder in /wp-content called mu-plugins, and drop this code into that folder, as grunt-sitemap.php
* Author: Liam Gladdy
* Author URI:
* Version: 1.0
wturnerharris / class-membership.php
Last active Feb 15, 2019
Class to make things members-only in WordPress.--This class depends on a custom capability called 'is_approved_member' for user member access and the custom post meta key '_members_only' as a post-level custom field.
View class-membership.php
* Custom class for WP_Membership routines.
* @package WP_Membership
* @since WP_Membership 0.1
if(realpath(__FILE__) === realpath($_SERVER["SCRIPT_FILENAME"]))
View WooCommerce: How To Get WooCommerce Page IDs
// Get The Page ID You Need
get_option( 'woocommerce_shop_page_id' );
get_option( 'woocommerce_cart_page_id' );
get_option( 'woocommerce_checkout_page_id' );
get_option( 'woocommerce_pay_page_id' );
get_option( 'woocommerce_thanks_page_id' );
get_option( 'woocommerce_myaccount_page_id' );
get_option( 'woocommerce_edit_address_page_id' );
get_option( 'woocommerce_view_order_page_id' );
get_option( 'woocommerce_terms_page_id' );
phaedryx / summary
Created Aug 19, 2013
Loyalty and Layoffs by David Brady
View summary
Original text here:
cfxd / dabblet.css
Last active Dec 20, 2015 — forked from oksushi/dabblet.css
Tableless horizontal navigation bar with padding and even spacing; no space between elements, no unused container space, and no fixed width (so works for any number of elements!).Fiddle at
View dabblet.css
* Using display: table-cell to evenly determine widths. You can add an arbitrary number of <li>
ul {
padding: 0;
display: table;
width: 100%;
table-layout: fixed;
You can’t perform that action at this time.