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
define([], function () { | |
var CookieManager = function() {}; | |
CookieManager.prototype.createCookie = function(name, value, days) { | |
if (days) { | |
var date = new Date(); | |
date.setTime(date.getTime()+(days*24*60*60*1000)); | |
var expires = "; expires="+date.toGMTString(); | |
} 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
<div id="notify"> | |
<p></p> | |
<a class="close" href="#">x</a> | |
</div> |
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="tabs cf"> | |
<a class="tab active" data-type="tab1">tab1</a> | |
<a class="tab" data-type="tab2">tab2</a> | |
<a class="tab" data-type="tab3">tab3</a> | |
</div> | |
<div class="tab-panes"> | |
<div class="tab-pane active" data-type="tab1"> | |
tab1 info | |
</div> | |
<div class="tab-pane" data-type="tab2"> |
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
body { | |
&::-webkit-scrollbar { | |
width: 12px; | |
} | |
&::-webkit-scrollbar-thumb { | |
background-color: #CCC; | |
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
$(window).on('keyup', function(e) { | |
switch(e.keyCode) { | |
// space | |
case 32: | |
break; | |
// enter | |
case 13: | |
break; | |
// up arrow | |
case 38: |
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
// Uses AMD or browser globals to create a jQuery plugin. | |
/** | |
* Name - jQuery Plugin | |
* | |
* Version: 0.0.1 (5/25/2012) | |
* Requires: jQuery v1.7+ | |
* | |
* Copyright (c) 2011 User - http://github.com/username | |
* Under MIT and GPL licenses: |
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 fs = require('fs'); | |
var walkPath = './'; | |
var walk = function (dir, done) { | |
fs.readdir(dir, function (error, list) { | |
if (error) { | |
return done(error); | |
} |
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
/** | |
* @appular hbs v0.0.1 - include file as text and convert it to a handlebars template | |
* @define hbs! | |
*/ | |
// hbtemplate.js plugin for requirejs / text.js | |
// it loads and compiles Handlebars templates | |
define([ | |
'handlebars' | |
], function (Handlebars) { |
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
_.extend(Backbone.View.prototype, { | |
// Set a hash of module options on the object, firing `"change"`. | |
set: function(key, value, options) { | |
var attribute, | |
attributes, | |
changes, | |
silent, | |
changing, | |
previous, | |
current; |
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
module.exports = function(grunt) { | |
require('load-grunt-tasks')(grunt); | |
// Project configuration. | |
grunt.initConfig({ | |
open : { | |
server : { | |
path: 'http://localhost:5000' | |
} | |
}, |
OlderNewer