The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
# Contract Killer | |
### The popular open-source contract for web designers and developers by [Stuff & Nonsense](http://stuffandnonsense.co.uk/) | |
* Originally published: 23/12/2008 | |
* Revised date: 15/12/2013 | |
* [Original post](http://stuffandnonsense.co.uk/projects/contract-killer/) | |
* * * | |
a[href^="http://"]:after, a[href^="https://"]:after { | |
content: "\f08e"; | |
font-family: FontAwesome; | |
font-weight: normal; | |
font-style: normal; | |
display: inline-block; | |
text-decoration: none; | |
padding-left: 3px; | |
} | |
/* Strip from links to own domain or with class no_icon, just in case */ |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
// -------------------------------------------------- | |
// Flexbox LESS mixins | |
// The spec: http://www.w3.org/TR/css3-flexbox | |
// -------------------------------------------------- | |
// Flexbox display | |
// flex or inline-flex | |
.flex-display(@display: flex) { | |
display: ~"-webkit-@{display}"; | |
display: ~"-moz-@{display}"; |
<?php | |
/** | |
*Reduce the strength requirement on the woocommerce password. | |
* | |
* Strength Settings | |
* 3 = Strong (default) | |
* 2 = Medium | |
* 1 = Weak | |
* 0 = Very Weak / Anything | |
*/ |
<?php | |
/* | |
WORDPRESS SPECIFIC AJAX HANDLER (because admin-ajax.php does not render plugin shortcodes). | |
credits: Raz Ohad https://coderwall.com/p/of7y2q/faster-ajax-for-wordpress | |
*/ | |
//mimic the actual admin-ajax | |
define('DOING_AJAX', true); | |
if (!isset( $_REQUEST['action'])) | |
die('-1'); |
# List of trackers for DNS blocking | |
# Taken from https://reports.exodus-privacy.eu.org/trackers/ and https://discourse.pi-hole.net/t/trackers/5656 | |
0.0.0.0 a4.tl2 | |
0.0.0.0 accengage.com | |
0.0.0.0 aatkit.com | |
0.0.0.0 adswizz.com | |
0.0.0.0 appboy.com | |
0.0.0.0 adnxs.com | |
0.0.0.0 appsflyer.com |
#!/bin/bash | |
# | |
# WP Commandline Local Install, by Brian Richards (@rzen) | |
# | |
# Creates a new directory, downloads WordPress, creates a database, sets up wp-config, | |
# optionally empties wp-content, and deletes other misc files. This compliments my local | |
# dev setup, outlined here: http://rzen.net/development/local-develoment-in-osx/ | |
# | |
# Credit: | |
# Based on WPBuildr (https://github.com/AaronHolbrook/wpbuildr/). Props to Aaron Holbrook |
<?php | |
function pewc_get_multicurrency_price( $price ) { | |
// Compatibility with WooCommerce multilingual | |
$price = apply_filters( 'wcml_raw_price_amount', $price ); | |
if( class_exists('WOOCS') ) { | |
global $WOOCS; | |
if ($WOOCS->is_multiple_allowed) { | |
$price = $WOOCS->woocs_exchange_value( floatval( $price ) ); |