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
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |
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
web1: | |
document_root: public | |
after_build: | |
- "ls public/dist/* &> /dev/null" |
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
.selector-one { | |
@include respond-to(phone) { | |
// phone and below (because it's the smallest) | |
} | |
@include respond-to(desktop-up) { | |
// desktop and higher | |
} | |
@include respond-to(ultra) { |
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
/* iPhone 3 portrait */ | |
@media (device-height: 480px) and (-webkit-max-device-pixel-ratio: 1) and (orientation:portrait) { | |
} | |
/* iPhone 3 landscape */ | |
@media (device-height: 480px) and (-webkit-max-device-pixel-ratio: 1) and (orientation:landscape) { | |
} | |
/* iPhone 4 retina portrait */ | |
@media (device-height: 480px) and (-webkit-min-device-pixel-ratio: 2) and (orientation:portrait) { |
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
# Fix font smoothing on Lion / Mountain Lion [range: 0-3] | |
defaults -currentHost write -globalDomain AppleFontSmoothing -int 1 |
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
#-webkit-web-inspector #toolbar { | |
background: #cdcdcd !important; | |
height: 36px !important; | |
} | |
#-webkit-web-inspector #main { | |
top: 36px !important; | |
} | |
#-webkit-web-inspector .toolbar-item.elements:hover:after { | |
content: "elements"; | |
z-index: 9999; |
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
@mixin hover-active { | |
&:hover { | |
.no-touch & { | |
@content; | |
} | |
} | |
&:active { | |
.touch & { | |
@content; | |
} |
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
// -------------------------------------------------- | |
// Iterator with shuffle support | |
// -------------------------------------------------- | |
define(function (require) { | |
// dependencies | |
var _ = require('underscore'); | |
// default options | |
var defaults = { |
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
define(function (require) { | |
// dependencies | |
var $ = require('jquery'); | |
// -------------------------------------------------- | |
// jquery micro-plugin for faster hide/show | |
// | |
$.fn.hidey = function () { | |
return this.each(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
// Cubic | |
$easeInCubic: cubic-bezier(0.550, 0.055, 0.675, 0.190); | |
$easeOutCubic: cubic-bezier(0.215, 0.610, 0.355, 1.000); | |
$easeInOutCubic: cubic-bezier(0.645, 0.045, 0.355, 1.000); | |
// Circ | |
$easeInCirc: cubic-bezier(0.600, 0.040, 0.980, 0.335); | |
$easeOutCirc: cubic-bezier(0.075, 0.820, 0.165, 1.000); | |
$easeInOutCirc: cubic-bezier(0.785, 0.135, 0.150, 0.860); |