Skip to content

Instantly share code, notes, and snippets.

Avatar

Paul Sebborn psebborn

  • Zoocha
  • Hertford
View GitHub Profile
@joncalhoun
joncalhoun / ..README.md
Last active Sep 14, 2020
Most of my settings for a new mac
View ..README.md

Chrome

  • Download & install Chrome
  • Login & sync settings/whatever else

Mac OS settings

  • General -> Use dark menu bar
  • General -> Default web browser: Google Chrome
@vladimirsiljkovic
vladimirsiljkovic / select.css
Last active Aug 30, 2020
Cross-browser (IE11+) <select> element styling without wrapper <div> https://jsbin.com/diqene/edit?html,css,output
View select.css
select {
-webkit-appearance: none; /* Webkit */
-moz-appearance: none; /* FF */
-ms-appearance: none; /* Edge */
appearance: none; /* Future */
/* Optional styles */
padding: 0.3em 1.5em 0.3em 0.6em;
border: 1px solid currentColor;
background: white;
@krypton
krypton / colormeter.js
Created Apr 16, 2012
Calculate difference in percentage between 2 hex colors
View colormeter.js
function color_meter(cwith, ccolor) {
if (!cwith && !ccolor) return;
var _cwith = (cwith.charAt(0)=="#") ? cwith.substring(1,7) : cwith;
var _ccolor = (ccolor.charAt(0)=="#") ? ccolor.substring(1,7) : ccolor;
var _r = parseInt(_cwith.substring(0,2), 16);
var _g = parseInt(_cwith.substring(2,4), 16);
var _b = parseInt(_cwith.substring(4,6), 16);
You can’t perform that action at this time.