Skip to content

Instantly share code, notes, and snippets.

@kellysutton
kellysutton / gist:c08398b77e1adadc2478
Created January 15, 2015 04:37
CSS Challenge Ideas

CSS Challenge Ideas

<?php
class CWS_Jetpack_Modules {
function __construct() {
add_filter( 'option_jetpack_active_modules', array( $this, 'active_modules' ) );
}
function active_modules( $modules ) {
$allowed_modules = array(
'enhanced-distribution',
@kyleaparker
kyleaparker / gist:b108e7142be8ee105f8b
Last active November 9, 2020 16:38
Alphabetical vendor categorization
<ul>
{% assign current = "" %}
{% for product_vendor in shop.vendors %}
{% assign first_letter = product_vendor | strip_html | upcase | truncate: 1, '' %}
{% unless first_letter == current %}
<li class="vendor-letter">{{ first_letter }}</li>
{% endunless %}
<li>{{ product_vendor | link_to_vendor }}</li>
{% assign current = first_letter %}
{% endfor %}
<?php
/*
Plugin Name: Test
*/
class My_Like_Button {
function __construct()
{
$this->hooks();
}
@boucher
boucher / StripeTutorialPage.html
Created February 6, 2012 07:05
Stripe Tutorial Payment Form
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Stripe Getting Started Form</title>
<script type="text/javascript" src="https://js.stripe.com/v1/"></script>
<!-- jQuery is used only for this example; it isn't required to use Stripe -->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript">
// this identifies your website in the createToken call below