Skip to content

Instantly share code, notes, and snippets.

@JWizerd
JWizerd / formspree.html
Created December 1, 2016 00:07 — forked from jannecederberg/formspree.html
JS: Ajax send forms using the most excellent Formspree » http://formspree.io #snippet
<form id="contact-form" action="//formspree.io/your@email.com" method="post">
<input type="text" name="Name" placeholder="Name" required>
<input type="email" name="Email" placeholder="Email" required>
<textarea name="Message" cols="30" rows="6" placeholder="Message" required></textarea>
<!-- CONFIG -->
<input class="is-hidden" type="text" name="_gotcha">
<input type="hidden" name="_subject" value="Subject">
<input type="hidden" name="_cc" value="email@cc.com">
<!-- /CONFIG -->
<input class="submit" type="submit" value="Send">
@JWizerd
JWizerd / shopify-split-navigation.liquid
Last active January 27, 2023 12:49
Split Navigation for Shopify Themes
<!--
use this snippet for template with split navigation, one on the left and one on the right.
this snippet expects that you have two link list / menus created 1 (main-left and main-right)
HOPE THIS HELPS SOMEBODY =)
-->
<div class="col-md-4 text-right hidden-xs hidden-sm">
<div class="site-header-nav hidden-xs hidden-sm">
{% if linklists.main-right.links.size > 0 %}
/**
* @source https://help.shopify.com/en/api/storefront-api/reference
*/
/**
* the model is responsible for the data. This means API interactions, localStorage interaction etc.
* there are some improvements that could be made to the mode below
* 1. we could inject a Driver object to set the data layer that a model will interact with
* 2. we could abstract the graphql interaction into it's own query builder class
*/
@JWizerd
JWizerd / homebrew.md
Created July 1, 2021 20:46 — forked from indiesquidge/homebrew.md
How to and Best of Homebrew

Homebrew

How To

Homebrew is a package management system for OS X. You can read more about it here, or simply run

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

to install it.