Skip to content

Instantly share code, notes, and snippets.

View jackbarham's full-sized avatar

Jack Barham jackbarham

View GitHub Profile
@joshmobley
joshmobley / cookie-alert.js
Created May 7, 2019 15:50
Simple cookie banner logic
@Kryptonit3-zz
Kryptonit3-zz / .gitignore
Last active July 13, 2018 18:15
Lightweight image cropping with jQuery
# Ignore everything in this directory
*
# Except this file
!.gitignore
@ifamily
ifamily / wp-config.php
Last active January 8, 2024 05:06
A universal WordPress wp-config.php which works on local development to staging and production server environments.
<?php
/*
One wp-config for local development to staging to production.
*/
// Define Environments
$environments = array(
@ijy
ijy / sublime-text-3-setup.md
Last active January 15, 2024 14:21
My Sublime Text 3 setup.

Sublime Text 3 Setup

Install Package Control

Install Package Control for easy package management.

  1. Open the console with Ctrl+`
  2. Paste in the following:
@branneman
branneman / event.js
Last active December 27, 2018 11:58
JavaScript window resize event with a 100ms delay
$(function() {
var resizeEnd;
$(window).on('resize', function() {
clearTimeout(resizeEnd);
resizeEnd = setTimeout(function() {
$(window).trigger('resize-end');
}, 100);
});
});