Skip to content

Instantly share code, notes, and snippets.

View cyberfly999's full-sized avatar
😎
playing the blues

Vince Hehlen cyberfly999

😎
playing the blues
View GitHub Profile
@cyberfly999
cyberfly999 / easing_equations_as_functions.js
Last active June 6, 2023 09:47
Easing Equations in JavaScript
// quadratic -----------------------------------------------------------------------------------------
easeInQuad(t, b, c, d) {
t /= d;
return c * t * t + b;
}
easeOutQuad(t, b, c, d) {
t /= d;
return -c * t*(t-2) + b;
<?php
class Maera_Timber_Conditionals extends TimberCore {
public $comments_open;
public $has_tag;
public $has_term;
public $in_category;
public $is_404;
public $is_admin;
@danburzo
danburzo / README.md
Last active July 29, 2021 08:41
Get all event listeners on the page in Google Chrome
@boogah
boogah / .htaccess
Created February 16, 2012 04:59
Expire headers .htaccess code.
<IfModule mod_expires.c>
ExpiresActive on
# Perhaps better to whitelist expires rules? Perhaps.
ExpiresDefault "access plus 1 month"
# Data
ExpiresByType text/xml "access plus 0 seconds"
ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType application/json "access plus 0 seconds"
@peteboere
peteboere / jquery.alterclass.js
Created December 24, 2011 12:49
jQuery alterClass plugin: Remove element classes with wildcard matching. Optionally add classes.
/**
* jQuery alterClass plugin
*
* Remove element classes with wildcard matching. Optionally add classes:
* $( '#foo' ).alterClass( 'foo-* bar-*', 'foobar' )
*
* Copyright (c) 2011 Pete Boere (the-echoplex.net)
* Free under terms of the MIT license: http://www.opensource.org/licenses/mit-license.php
*
*/