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
### | |
The main requirejs file | |
### | |
require.config | |
paths: | |
"jquery": "vendor/jquery.min" | |
"underscore": "vendor/lodash.min" | |
"backbone": "vendor/backbone-min" |
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($){ | |
var addClass = $.fn.addClass; | |
$.fn.addClass = function(value) { | |
var orig = addClass.apply(this, arguments); | |
var elem, | |
i = 0, | |
len = this.length; | |
for (; i < len; i++ ) { |
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($){ | |
/* addClass shim | |
****************************************************/ | |
var addClass = $.fn.addClass; | |
$.fn.addClass = function(value) { | |
var orig = addClass.apply(this, arguments); | |
var elem, | |
i = 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
var gulp = require('gulp'); | |
var clean = require('gulp-clean'); | |
var jshint = require('gulp-jshint'); | |
var concat = require('gulp-concat'); | |
var uglify = require('gulp-uglify'); | |
var imagemin = require('gulp-imagemin'); | |
var bases = { | |
app: 'app/', |
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
<div class="ocarousel example_photos" data-ocarousel-perscroll="3"> | |
<div class="ocarousel_window"> | |
<img src="http://www.justinmccandless.com/img/posts/qingdao/qingdao_normal_0.jpg" /> | |
<img src="http://www.justinmccandless.com/img/posts/qingdao/qingdao_normal_1.jpg" /> | |
<img src="http://www.justinmccandless.com/img/posts/qingdao/qingdao_normal_2.jpg" /> | |
<img src="http://www.justinmccandless.com/img/posts/qingdao/qingdao_normal_3.jpg" /> | |
<img src="http://www.justinmccandless.com/img/posts/qingdao/qingdao_normal_4.jpg" /> | |
<img src="http://www.justinmccandless.com/img/posts/qingdao/qingdao_normal_5.jpg" /> | |
<img src="http://www.justinmccandless.com/img/posts/qingdao/qingdao_normal_6.jpg" /> | |
<img src="http://www.justinmccandless.com/img/posts/qingdao/qingdao_normal_7.jpg" /> |
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 gulp = require('gulp'); | |
gulp.task('default', function() { | |
console.log('Hello world.'); | |
}); |
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 gulp = require('gulp'); | |
var paths = { | |
scripts: ['app/scripts/**/*.js'], | |
html: ['app/index.html', '!app/test.html'], | |
dist: 'dist/' | |
}; | |
gulp.task('default', function(){ | |
gulp.src(paths.scripts.concat(paths.html)) |
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
({ | |
baseUrl: 'app/scripts/', | |
mainConfigFile: 'app/scripts/main.js', | |
out: 'dist/output.min.js', | |
optimize: 'uglify2', | |
include: ['main'], | |
name: '../bower_components/almond/almond', | |
}) |
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
requirejs.config({ | |
baseUrl: 'app/scripts', | |
paths: { | |
sprite: 'sprite', | |
spriteDude: 'sprites/dude' | |
} | |
}); | |
requirejs(['jquery'], | |
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
/* border-serrated - a zig zag triangle border with linear gradient | |
*/ | |
@mixin border-top-serrated($size, $color-outer) { | |
& { | |
position: relative; | |
overflow: auto; | |
padding-top: $size; | |
} | |
&:before { | |
top: 0px; |
OlderNewer