Skip to content

Instantly share code, notes, and snippets.

View danwarfel's full-sized avatar

Dan danwarfel

View GitHub Profile
@danwarfel
danwarfel / anchor-hi-life.css
Last active November 30, 2017 11:56
WIRED Magazine's anchor tag styling.
.link-underline a {
border-bottom: 3px solid #b4e7f8;
border-bottom-width: 3px;
border-bottom-style: solid;
border-bottom-color: rgb(180, 231, 248);
box-shadow: inset 0 -4px 0 #b4e7f8;
color: inherit;
-webkit-transition: background .15s cubic-bezier(.33,.66,.66,1);
-moz-transition: background .15s cubic-bezier(.33,.66,.66,1);
-o-transition: background .15s cubic-bezier(.33,.66,.66,1);
#!/usr/bin/ruby
# Create display override file to force Mac OS X to use RGB mode for Display
# see http://embdev.net/topic/284710
require 'base64'
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay`
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten