This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Author: http://stuffandnonsense.co.uk/blog/about/hardboiled_css3_media_queries/ | |
*/ | |
/* Smartphones (portrait and landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 320px) | |
and (max-device-width : 480px) { | |
/* Styles */ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* HEX TO COLOR TONE | |
* Convert a hex string for colors into a percentage of color tone | |
* This function takes accessibility into account when color correcting the brightness differences between RGB | |
* | |
* @return float(0, 1) | |
* black = 0 | |
* white = 1 | |
**/ | |
String.prototype.getColorBrightness = function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* HEX TO RGBA | |
* Convert a hex string for colors into an rbga value | |
* | |
* @param alpha (float) THe opacity value of the color | |
**/ | |
String.prototype.hexToRgbA = function(alpha) { | |
var c; | |
if(/^#([A-Fa-f0-9]{3}){1,2}$/.test(this)){ | |
c= this.substring(1).split(''); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# MIT © Justin Slamka <justin.slamka@zapsolutions.com> | |
# git hook to run a command after `git pull` if a specified file was changed | |
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`. | |
# GET LIST OF CHANGED FILES | |
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
check_run() { |