Skip to content

Instantly share code, notes, and snippets.

View jgphilpott's full-sized avatar
🎨
Being creative!

Jacob Philpott jgphilpott

🎨
Being creative!
View GitHub Profile
@jgphilpott
jgphilpott / alphabet.js
Last active September 3, 2023 14:01 — forked from bendc/alphabet.js
An array of uppercase and lowercase letters.
const alphabet = (function() {
letters = [...Array(26)].map((value, index) => String.fromCharCode(index + 65))
return letters.map(letter => {
return { lower: letter.toLowerCase(), upper: letter.toUpperCase() }
})
@jgphilpott
jgphilpott / jQueryPlus.coffee
Last active August 23, 2023 09:44 — forked from ncr/README
A collection of jQuery method updates.
# Credit: http://gist.github.com/399624
# The click event will be fired with a small delay but will not fire upon a double click.
$.fn.clickSingleDouble = (singleClickCallback, doubleClickCallback, delay = 250) ->
return this.each =>
clicks = 0
$(this).click (event) =>
@jgphilpott
jgphilpott / localStorage.coffee
Last active November 18, 2022 11:43 — forked from cdmckay/local-storage-size.js
A collection of functions for writing, reading and deleting in localStorage.
localKeys = ->
return Object.keys window.localStorage
localWrite = (key, value) ->
try
window.localStorage.setItem String(key), JSON.stringify(value)
@jgphilpott
jgphilpott / rotation.coffee
Last active August 20, 2023 20:19 — forked from hoandang/get_rotate.js
Rotate any jQuery selected element.
# Rotate any jQuery selected element.
# Credit: https://gist.github.com/hoandang/5989980
# Credit: https://stackoverflow.com/a/15191130/1544937
$.fn.rotate = (degree = 0, duration = 1000) ->
element = $(this)
rotation = ->
matrix = element.css "-webkit-transform" or