Skip to content

Instantly share code, notes, and snippets.

View danielgolden's full-sized avatar

Daniel Golden danielgolden

View GitHub Profile
@bendc
bendc / easing.css
Created September 23, 2016 04:12
Easing CSS variables
:root {
--ease-in-quad: cubic-bezier(.55, .085, .68, .53);
--ease-in-cubic: cubic-bezier(.550, .055, .675, .19);
--ease-in-quart: cubic-bezier(.895, .03, .685, .22);
--ease-in-quint: cubic-bezier(.755, .05, .855, .06);
--ease-in-expo: cubic-bezier(.95, .05, .795, .035);
--ease-in-circ: cubic-bezier(.6, .04, .98, .335);
--ease-out-quad: cubic-bezier(.25, .46, .45, .94);
--ease-out-cubic: cubic-bezier(.215, .61, .355, 1);
/**
The following script works like this:
1. Auto play the game
2. Get all the color elements (<span>) inside the game
3. Push the elements to different arrays based on it's color
i.e:
– If it's a "red" color, goes to the "red" array
– If it's a "blue" color, goes to the "blue" array
4. Check each of those arrays has only one element, which is the one that
has a different/unique color compared to the others
@ntassone
ntassone / loop.scss
Last active February 18, 2021 18:23
SASS - Loop through array to create class sets.
//Set Variables
$button-white: #ffffff;
$button-green: #44ca00;
$button-green-dark: #369a12;
$button-blue: #a6d1f9;
$button-blue-dark: #14283e;
$button-gray: #eeeeee;
$button-red: #9e0b0f;
//Create Array
@joaocunha
joaocunha / How To Hide The Select Arrow On Firefox.md
Last active December 10, 2023 13:05
How to hide <select> dropdown's arrow in Firefox when using "-moz-appearance: none;".

This is no longer a bug. I'm keeping the gist for historical reasons, as it helped to get it fixed. Make sure to read the notes by the end of the post.

How to remove hide the select arrow in Firefox using -moz-appearance:none;

TL;DR (or, the fix)

  1. Set -moz-appearance to none. This will "reset" the styling of the element;
  2. Set text-indent to 0.01px. This will "push" the text a tiny bit[1] to the right;
@gfontenot
gfontenot / post-commit
Created June 23, 2012 01:13
Post commit hook for Day One
#!/bin/sh
#
# Originally by Gordon Fontenot
# gordon.fontenot@me.com
#
# Log all commit messages to Day One
msg=`cat $PWD/.git/COMMIT_EDITMSG`
_pwd=`echo $PWD | sed -e "s/.*\///"`
_commit=`git rev-parse --short HEAD`