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
// Works in modern browsers + IE9, but Modernizr has a polyfill baked in for function.bind. | |
// Hat tip Paul Irish | |
var o = $( {} ); | |
$.subscribe = o.on.bind(o); | |
$.unsubscribe = o.off.bind(o); | |
$.publish = o.trigger.bind(o); |
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
Show hidden characters
{ | |
// Settings | |
"maxerr" : 50, // Maximum error before stopping. | |
"passfail" : false, // Stop on first error. | |
// Predefined globals whom JSHint will ignore. | |
"browser" : true, // Standard browser globals e.g. `window`, `document`. | |
"jquery" : true, // Globals exposed by the jQuery JavaScript library. | |
"node" : true, // Globals available when your code is running inside of the Node runtime environment. |
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
/*------------------------------------*\ | |
breakpoint vars | |
\*------------------------------------*/ | |
$break-320: 20em; | |
$break-321: 20.0625em; | |
$break-480: 30em; | |
$break-600: 37.5em; | |
$break-768: 48em; | |
$break-980: 61.25em; | |
$break-1024: 64em; |
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
Object.prototype.inherit = function () { | |
function F() {} | |
F.prototype = this; | |
return new F(); | |
} |
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
@function strip-units($number) { | |
@return $number / ($number * 0 + 1); | |
} | |
@mixin font-size($size: 16, $line: 1.5) { | |
font-size: $size + px; | |
font-size: ($size / 10) + rem; | |
@if unitless($line) { | |
line-height: $line; | |
} @else { |
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
@media only screen and (min-width: 767px) { | |
::-webkit-scrollbar { | |
width: 12px; | |
height: 12px; | |
background-color: $xxLightGrey; | |
} | |
::-webkit-scrollbar-thumb { | |
background-color: $darkBlue; | |
-webkit-border-radius: 5px; | |
} |
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
<!-- inline SVG with inline fallback --> | |
<object data="image.svg" type="image/svg+xml"> | |
<img src="image.png" /> | |
</object> | |
<!-- inline SVG with CSS fallback using Modernizr --> | |
<object data="image.svg" type="image/svg+xml" class="svg"> | |
SVG Image <!-- CSS fallback image --> | |
</object> |
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
*.sublime-* | |
!.gitkeep | |
bin | |
dist | |
logs/* | |
node_modules/ | |
tmp | |
.DS_Store | |
.idea | |
.sass-cache |
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
{ | |
"binary_file_patterns": | |
[ | |
"humans.txt", | |
"robots.txt", | |
"*jquery*.js", | |
"*.min.js" | |
], | |
"caret_style": "blink", | |
"color_scheme": "Packages/User/Tomorrow-Night (SL).tmTheme", |
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
[color] | |
ui = auto | |
[push] | |
default = simple | |
[mergetool "sublime"] | |
cmd = subl -w $MERGED | |
trustExitCode = false | |
[merge] | |
tool = sublime | |
[core] |
OlderNewer