Skip to content

Instantly share code, notes, and snippets.

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

{% capture discount %}
{{ product.compare_at_price_max | minus:product.price | times:100 | divided_by:product.compare_at_price_max }}%
{% endcapture %}
Based on the work by @ajtroxell, as seen in this article
http://ajtroxell.com/build-a-simple-php-jquery-and-ajax-powered-contact-form/
External required files:
jQuery
http://code.jquery.com/jquery-latest.min.js
jQuery Form Plugin
//cdnjs.cloudflare.com/ajax/libs/jquery.form/3.32/jquery.form.js
jQuery Validate
//cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.11.1/jquery.validate.min.js
@teckx5
teckx5 / Environment-Indicators.php
Created May 20, 2015 15:00
Drupal Environment Indicators to help visually manage Dev, Staging, and Production Servers
// Add to each environment settings.php file
// Local/Development Server
$conf['environment_indicator_overwrite'] = TRUE;
$conf['environment_indicator_overwritten_name'] = 'Local';
$conf['environment_indicator_overwritten_color'] = '#bb0000';
// Staging Server
$conf['environment_indicator_overwrite'] = TRUE;
$conf['environment_indicator_overwritten_name'] = 'Stage';
/* This is a small sampling of the various approaches to media queries. The
point is: they're all over the board. Part of the "issue" (if you can call
it that) may be due to the intended audience of each site/framework. Another
may be that it's really difficult to test for a lot of different devices.
Regardless, it would be really nice if there was standard baseline that
could be used as a starting point for maximum compatibility and coverage. */
/* ==========================================================================
Frameworks
========================================================================== */
@teckx5
teckx5 / gist:75db81c47d393f391b7f
Created June 29, 2015 19:36
Shopify Shipping Notification - For Pickup or Shipping
{% if shipping_method.title contains 'Pickup' %}
// Your Pickup Message, e.g. This email confirms that you picked up the following items from our store today. We appreciate your business. Come again soon. //
{% else %}
// Your standard shipping email message //
{% endif %}
@teckx5
teckx5 / criticalcss-bookmarklet-devtool-snippet.js
Last active August 29, 2015 14:27 — forked from PaulKinlan/criticalcss-bookmarklet-devtool-snippet.js
CriticalCSS Bookmarklet and Devtool Snippet.js
(function() {
var CSSCriticalPath = function(w, d, opts) {
var opt = opts || {};
var css = {};
var pushCSS = function(r) {
if(!!css[r.selectorText] === false) css[r.selectorText] = {};
var styles = r.style.cssText.split(/;(?![A-Za-z0-9])/);
for(var i = 0; i < styles.length; i++) {
if(!!styles[i] === false) continue;
var pair = styles[i].split(": ");
@teckx5
teckx5 / web.config
Created October 15, 2015 10:49 — forked from jonahvsweb/web.config
How to Setup WordPress Permalinks on Windows IIS ======================================= Place this file into the base directory of your WordPress installation to allow permalinks (or "pretty URLs") on Windows IIS.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>