I no longer mantain this list. There are lots of other very comprehensive JavaScript link lists out there. Please see those, instead (Google "awesome JavaScript" for a start).
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
| var sys = require("sys"), | |
| fs = require("fs"); | |
| function processImageDir(path, outFilename, cb) { | |
| fs.readdir(path, function(err, files) { | |
| var imgfiles = []; | |
| // Check for images and push on the array if it's a match. | |
| files.forEach(function(name) { |
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
| <div class="the-return"> | |
| [HTML is replaced when successful.] | |
| </div> |
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
| // _decimal.scss | MIT License | gist.github.com/terkel/4373420 | |
| // Round a number to specified digits. | |
| // | |
| // @param {Number} $number A number to round | |
| // @param {Number} [$digits:0] Digits to output | |
| // @param {String} [$mode:round] (round|ceil|floor) How to round a number | |
| // @return {Number} A rounded number | |
| // @example | |
| // decimal-round(0.333) => 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
| <section id="archive"> | |
| <h3>This year's posts</h3> | |
| {%for post in site.posts %} | |
| {% unless post.next %} | |
| <ul class="this"> | |
| {% else %} | |
| {% capture year %}{{ post.date | date: '%Y' }}{% endcapture %} | |
| {% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %} | |
| {% if year != nyear %} | |
| </ul> |
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
| // Load plugins | |
| var gulp = require('gulp'), | |
| plugins = require('gulp-load-plugins')({ camelize: true }), | |
| lr = require('tiny-lr'), | |
| server = lr(); | |
| // Styles | |
| gulp.task('styles', function() { | |
| return gulp.src('assets/styles/source/*.scss') | |
| .pipe(plugins.rubySass({ style: 'expanded', compass: true })) |
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-sync config file | |
| |-------------------------------------------------------------------------- | |
| | | |
| | Please report any issues you encounter: | |
| | https://github.com/shakyShane/browser-sync/issues | |
| | | |
| | For up-to-date information about the options: | |
| | https://github.com/shakyShane/browser-sync/wiki/Working-with-a-Config-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
| // code via http://scotch.io/quick-tips/all-search-and-social-media-meta-tags-starter-template | |
| #Search Engines / Google | |
| <!-- SEO --> | |
| <meta name="author" content="Author name here...."> | |
| <meta name="description" content="Description text here....."> | |
| <link rel="canonical" href="URL here..."> <!-- info: http://goo.gl/0ta7jy --> | |
| #Twitter Cards (Large Image) | |
| <!-- Social: Twitter --> |
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
| var options, paths, | |
| gulp = require("gulp"), | |
| merge = require("merge-stream"), | |
| path = require("path"), | |
| clean = require("gulp-clean"), | |
| concat = require("gulp-concat"), | |
| markdown = require("gulp-markdown"), | |
| minifyCSS = require("gulp-minify-css"), | |
| removeLines = require("gulp-remove-lines"), |
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
| var ParallaxManager, ParallaxPart; | |
| ParallaxPart = (function() { | |
| function ParallaxPart(el) { | |
| this.el = el; | |
| this.speed = parseFloat(this.el.getAttribute('data-parallax-speed')); | |
| this.maxScroll = parseInt(this.el.getAttribute('data-max-scroll')); | |
| } | |
| ParallaxPart.prototype.update = function(scrollY) { |
OlderNewer