Skip to content

Instantly share code, notes, and snippets.

@lucas-pelton
lucas-pelton / css3Parallax.js
Created October 29, 2015 17:24
Simple, smooth parallax with css transforms
var parallaxDivs = document.getElementsByClassName("parallaxBG");
var updateSize = function() {
updateScroll();
}
var updateScroll = function() {
@lucas-pelton
lucas-pelton / Wordpress plugin Categories Images
Last active January 1, 2016 22:28
Small change to Wordpress plugin Categories Images.Use thumbnails, rather than full-size images, on category listing page in WP admin.
/**
* Thumbnail column value added to category admin.
*
* @access public
* @param mixed $columns
* @param mixed $column
* @param mixed $id
* @return void
*/
function z_taxonomy_column( $columns, $column, $id ) {
@lucas-pelton
lucas-pelton / wp-members-pluggable.php
Last active December 25, 2015 16:59
Functions to add to wp-members-pluggable.php to create a situation where you log in to Wordpress using email address instead of username.
<?php
/**
* WP-Members Pluggable Functions
*
* These functions replace those in the wp-members plugin
*
*/
add_filter( 'wpmem_inc_login_args', 'wpmem_inc_login_args_filter' );
if ( ! function_exists( 'wpmem_inc_login_args_filter' ) ):

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.

.leaflet-popup-content-wrapper {
background-color:#FFFFFF;
background-color: rgba(255,255,255,.7);
background: transparent\9; /* clear current background for ie */
zoom:1; /* required for the filters */
/* For IE 5.5 - 7*/
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#7FFFFFFF, endColorstr=#7FFFFFFF);
/* For IE 8*/
-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#7FFFFFFF, endColorstr=#7FFFFFFF)";