Skip to content

Instantly share code, notes, and snippets.

View paulcanning's full-sized avatar

Paul Canning paulcanning

View GitHub Profile
@lrvick
lrvick / github-troll.md
Last active January 21, 2025 16:14
Trolling Github's DMCA repo with their own security flaws.
@PurpleBooth
PurpleBooth / README-Template.md
Last active February 26, 2025 19:40
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@spivurno
spivurno / gw-gravity-forms-zip-files.php
Last active September 3, 2020 15:04
Gravity Wiz // Gravity Forms // Zip Uploaded Files
<?php
/**
* WARNING! THIS SNIPPET MAY BE OUTDATED.
* The latest version of this snippet can be found in the Gravity Wiz Snippet Library:
* https://github.com/gravitywiz/snippet-library/blob/master/gravity-forms/gw-zip-files.php
*/
/**
* Gravity Wiz // Gravity Forms // Zip Uploaded Files
*
* Needs description.
@TheDistantSea
TheDistantSea / version_compare.js
Created December 18, 2013 12:19
Function to compare two version strings (e.g. "1.6.1" is smaller than "1.7"). Developed in order to answer http://stackoverflow.com/a/6832721/50079.
/**
* Compares two software version numbers (e.g. "1.7.1" or "1.2b").
*
* This function was born in http://stackoverflow.com/a/6832721.
*
* @param {string} v1 The first version to be compared.
* @param {string} v2 The second version to be compared.
* @param {object} [options] Optional flags that affect comparison behavior:
* <ul>
* <li>
@ismyrnow
ismyrnow / google-analytics-amd.js
Last active March 14, 2022 21:32
Google Analytics AMD Module
define(function (require) {
var module;
// Setup temporary Google Analytics objects.
window.GoogleAnalyticsObject = "ga";
window.ga = function () { (window.ga.q = window.ga.q || []).push(arguments); };
window.ga.l = 1 * new Date();
// Immediately add a pageview event to the queue.
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active February 27, 2025 10:00
A badass list of frontend development resources I collected over time.
@eligrey
eligrey / object-watch.js
Created April 30, 2010 01:38
object.watch polyfill in ES5
/*
* object.watch polyfill
*
* 2012-04-03
*
* By Eli Grey, http://eligrey.com
* Public Domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/