Skip to content

Instantly share code, notes, and snippets.

/* 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 / 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';
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
{% capture discount %}
{{ product.compare_at_price_max | minus:product.price | times:100 | divided_by:product.compare_at_price_max }}%
{% endcapture %}

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.