Want to create a Gist from your editor, the command line, or the Services menu? Here's how.
This file contains hidden or 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
// | |
// JS_UserDefaults.h | |
// | |
// Created by Paul Armstrong on 6/28/11. | |
// Copyright 2011 Paul Armstrong Designs. All rights reserved. | |
// | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software | |
// and associated documentation files (the "Software"), to deal in the Software without restriction, | |
// including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, |
This file contains hidden or 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
a[href^=http]:hover:after, | |
a[href^=http]:link:hover:after { | |
margin: 0 0 0 5px; | |
padding: 0 0.2em; | |
content: '(' attr(href) ')'; | |
font-size: 0.8em; | |
position: absolute; | |
background: #C6CFEB; | |
color: #3A57AB; | |
} |
This file contains hidden or 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
#count { | |
font-family: Helvetica, Arial, Verdana, sans-serif; | |
font-weight: bold; | |
color: #FFF; | |
} |
This file contains hidden or 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
a[href*="twitter.com"], | |
a[href*="github.com"], | |
a[href*="dribbble.com"], | |
a[href*="linkedin.com"] { | |
background-image: url(images/icons.png); | |
background-position: 2px 2px; | |
background-repeat: no-repeat; | |
padding-left: 20px; | |
} | |
a[href*="github.com"] { background-position: 2px -23px; } |
This file contains hidden or 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
.fancyselect { | |
display: inline; | |
position: absolute; | |
padding: 2px 2px 0 2px; | |
} | |
.fancyselect.open { | |
background: #FFF; | |
border: 2px solid #DDD; | |
padding: 0; | |
} |
This file contains hidden or 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
function filterKeys(obj) { | |
var newObj = {}, key, url, i, newArr = [], | |
disallowed = ['constructor', 'target', 'currentTarget', 'relatedTarget', 'srcElement', 'toElement', 'view']; | |
for (key in obj) { | |
if (obj.hasOwnProperty(key) && disallowed.indexOf(key) === -1) { | |
if (Array.isArray(obj[key])) { | |
newArr = []; | |
i = obj[key].length; | |
while (i) { | |
i -= 1; |
This file contains hidden or 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
browser: | |
@rm -rf browser/dist | |
@mkdir -p browser/dist | |
@echo "swig = (function () {" >> $(BROWSER_FILE) | |
@echo "var swig = {}," >> $(BROWSER_FILE) | |
@echo " dateformat = {}," >> $(BROWSER_FILE) | |
@echo " filters = {}," >> $(BROWSER_FILE) | |
@echo " helpers = {}," >> $(BROWSER_FILE) | |
@echo " parser = {}," >> $(BROWSER_FILE) | |
@echo " tags = {};" >> $(BROWSER_FILE) |
This file contains hidden or 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
a { | |
padding: 2px 2px 0; | |
margin: -2px -2px 0; | |
-webkit-border-radius: 3px; | |
-moz-border-radius: 3px; | |
-ms-border-radius: 3px; | |
-o-border-radius: 3px; | |
border-radius: 3px; | |
color: #3A57AB; | |
} |
This file contains hidden or 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
@media all and (max-device-width: 1024px) { | |
input, select, textarea, button { | |
/* Flippin mobile Safari's flippin inner shadow of annoyance */ | |
-webkit-appearance: caret; | |
} | |
} |