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
{ | |
"syntaxes": [ | |
{ | |
"name": "Mustache", | |
"rules": [ | |
{"file_name": ".*\\.mustache$"} | |
] | |
} | |
] | |
} |
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
<snippet> | |
<content><![CDATA[ | |
(function(app) { | |
var ${1:name} = (function() { | |
return { | |
${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
(navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPod/i)) && !location.hash && setTimeout(function(){ | |
!pageYOffset && window.scrollTo(0,1); | |
}, 1000); |
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
http_path = "/" | |
css_dir = "" | |
sass_dir = "" | |
images_dir = "" | |
javascripts_dir = "" | |
output_style = :expanded | |
line_comments = false | |
preferred_syntax = :scss |
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 partial(names) { | |
var hbs = require('hbs') | |
, fs = require('fs'); | |
if (typeof names == 'string') names = [names]; | |
names.forEach(function(name){ | |
hbs.registerPartial(name, fs.readFileSync(__dirname + '/../views/partials/' + name + '.hbs', 'utf-8')); | |
}); | |
} |
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
/* | |
* Sample usage: | |
* <div data-bind="transitionEnd: modelMethod"></div> | |
* | |
* Issues: | |
* - Webkit-only event name | |
* - Fires multiple times when multiple properties are transitioned | |
*/ | |
ko.bindingHandlers.transitionEnd = { | |
init: function (element, valueAccessor) { |
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
/** | |
* fitvids.js is awesome but kind of dependent on pretty | |
* ideal and predictable markup. Unfortunately, a lot of | |
* services and sites seem to break it. | |
* | |
* This is a dirtier but more forgiving spin on the same | |
* idea. It is probably worse, but it works. | |
* | |
* https://gist.github.com/tylersticka/5967626 | |
*/ |
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
// Native scrolling (iOS 5+, Android 4+) | |
.scrollable { | |
overflow: auto; // Fallback for non-touch browsers | |
-webkit-overflow-scrolling: touch; // Native-esque scrolling on touch-enabled webkit | |
// Everything below here improves performance of scrolling. You can omit this at | |
// first and add as your content becomes more complex and performance needs a boost. | |
&, > * { | |
-webkit-backface-visibility: hidden; |
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
alias plbuild="php core/builder.php -gc" # Pattern Lab: Build/Clean | |
alias plwatch="php core/builder.php -rw" # Pattern Lab: Watch/Sync |
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
/** | |
* Chrome 32/33 webfont issue fix. | |
* Requires jQuery. | |
* More info: http://blog.cloudfour.com/chrome-webfont-issues/ | |
*/ | |
(function($, window){ | |
// only proceed if this is Chrome | |
if (window.navigator.userAgent.indexOf('Chrome') === -1) return; | |
// only proceed if the version is 32 or greater |