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
fs = require 'fs' | |
pathutil = require 'path' | |
jade = require 'jade' | |
parseFiles = (dirname) -> | |
filenames = fs.readdirSync dirname | |
for file in filenames | |
continue if file.slice(0,1) is '.' | |
path = pathutil.join dirname, file | |
stats = fs.statSync pathutil.join dirname, path |
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
/* | |
Grunt is here: http://gruntjs.com/ | |
The plugin grunt-text-replace is here: https://github.com/yoniholmes/grunt-text-replace | |
After reading those instructions, it should be clear how to use the following. | |
*/ | |
module.exports = function(grunt) { | |
grunt.initConfig({ |
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
/* | |
No jQuery necessary. | |
Thanks to Dan's StackOverflow answer for this: | |
http://stackoverflow.com/questions/123999/how-to-tell-if-a-dom-element-is-visible-in-the-current-viewport | |
*/ | |
function isElementInViewport(el) { | |
var rect = el.getBoundingClientRect(); | |
return ( | |
rect.top >= 0 && |
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
def dumb_to_smart_quotes(string): | |
"""Takes a string and returns it with dumb quotes, single and double, | |
replaced by smart quotes. Accounts for the possibility of HTML tags | |
within the string.""" | |
# Find dumb double quotes coming directly after letters or punctuation, | |
# and replace them with right double quotes. | |
string = re.sub(r'([a-zA-Z0-9.,?!;:\'\"])"', r'\1”', string) | |
# Find any remaining dumb double quotes and replace them with | |
# left double quotes. |
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
@font-face { | |
font-family:"icon"; | |
src:url("../fonts/icon.eot"); | |
src:url("../fonts/icon.eot?#iefix") format("embedded-opentype"), | |
url("../fonts/icon.woff") format("woff"), | |
url("../fonts/icon.ttf") format("truetype"), | |
url("../fonts/icon.svg?#webfont") format("svg"); | |
font-weight:normal; | |
font-style:normal; | |
} |
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
/* Generated by grunt-webfont */ | |
<% if (fontfaceStyles) { %>@font-face { | |
font-family:"<%= fontBaseName %>";<% if (eot) { %> | |
src:<%= fontSrc1 %>;<% }%> | |
src:<%= fontSrc2 %>; | |
font-weight:normal; | |
font-style:normal; | |
} | |
<% } %> |
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
/* Generated by grunt-webfont */ | |
<% if (fontfaceStyles) { %>@font-face { | |
font-family:"<%= fontBaseName %>";<% if (eot) { %> | |
src:<%= fontSrc1 %>;<% }%> | |
src:<%= fontSrc2 %>; | |
font-weight:normal; | |
font-style:normal; | |
} | |
<% } %> |
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 mblConnect = { | |
$cont: $('#connect'), | |
$site: $('#site'), | |
isOpen: false, | |
$overlay: $('<div id="mbl-overlay" class="mbl-overlay js-connect-btn" />'), | |
_getBtns: function () { | |
return $('.js-connect-btn'); | |
}, |
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
@import "../bower_components/scut/dist/scut"; | |
@for $i from 1 through 200 { | |
.test-#{$i} { | |
@extend %scut-hide-visually; | |
@extend %scut-image-replace; | |
@extend %scut-triangle; | |
@extend %scut-clearfix; | |
@extend %scut-fill; | |
@extend %scut-list-unstyled; |
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
// ---- | |
// libsass (v2.0.0) | |
// ---- | |
@mixin first { | |
/* first mixin was included */ | |
body { | |
font-size: 100px; | |
} | |
} |
OlderNewer