Skip to content

Instantly share code, notes, and snippets.

<?php
$blueprint = json_decode( '{
"sample": {
"themes": [
"automattic/_s"
],
"mu_plugins": {
"wds-required-plugins": "https://github.com/WebDevStudios/WDS-Required-Plugins.git"
},
@ezekg
ezekg / reveal.coffee
Last active August 29, 2015 14:11
Slide-in reveal transitions
###
# Slide-in reveal transitions
#
# @author Ezekiel Gabrielse, Produce Results
# @link https://produceresults.com
###
class Reveal
###
# Add reveal animation to els
@ezekg
ezekg / slider.coffee
Last active August 29, 2015 14:11
Slider
"use-strict"
###
# Slider
#
# @example
# ```haml
# .slider__wrapper
# .slider
# .slider__slide.slider__slide--active
#
# Wide-open CORS config for nginx
#
location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
#
@ezekg
ezekg / rain.sh
Last active August 29, 2015 14:16 — forked from livibetter/README.md
#!/bin/bash
# Let it Rain!
# Copyright (C) 2011, 2013 by Yu-Jie Lin
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@ezekg
ezekg / magento.md
Last active July 12, 2016 17:23 — forked from davidalexander/gist:1086455
Magento snippets

Magento Snippets

Download extension manually using pear/mage

Pear for 1.4, mage for 1.5. File downloaded into /downloader/.cache/community/

./pear download magento-community/Shipping_Agent
./mage download community Shipping_Agent

Clear cache/reindex

#Stay Standalone

A short script to prevent internal links to a "webapp" added to iPhone home screen to open in Safari instead of navigating internally.

# Parse the query string params.
# https://gist.github.com/brianmcallister/94d89b3c50b2b9e98f6d
#
# Examples
#
# If the query string is:
# test=test&foo&a=truee&bool=false&num=10
#
# parseQueryParams()
# #=> {"test": "test", "foo": "", "a": "truee", "bool": false, "num": 10}
@ezekg
ezekg / duplicates.scss
Last active August 29, 2015 14:16
For those pesky double ampersands...
@mixin duplicates {
$selectors: ();
@if not & {
@warn "You can't use the 'duplicates' mixin without a parent selector (&)";
}
@each $set in & {
$selectors: append($selectors, #{$set} + #{nth($set, length($set))}, "comma");
}