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(factory) { | |
if (typeof define !== 'undefined' && define.amd) | |
return define(factory); | |
if (typeof module !== 'undefined' && module.exports === exports) | |
return module.exports = factory(); | |
window.LIB_NAME = factory(); | |
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
// Defines a module that works in Node and AMD. | |
// This version can be used as common boilerplate for a library module | |
// that you only want to expose to Node and AMD loaders. It will not work | |
// well for defining browser globals. | |
// If you need a version of this file that works CommonJS-like environments | |
// that do not support module.exports or if you want to define a module | |
// with a circular dependency, see commonjsAdapter.js |
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
.grid_column(@prefix; @index; @base) { | |
@fullclass: ~'.grid-@{prefix}col@{index}'; | |
@{fullclass} { left: @base * @index; } | |
} | |
.grid_row(@prefix; @index; @base) { | |
@fullclass: ~'.grid-@{prefix}row@{index}'; | |
@{fullclass} { top: @base * @index; } | |
} | |
.grid_width(@prefix; @index; @base) { | |
@fullclass: ~'.grid-@{prefix}hspan@{index}'; |
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
({ | |
name: "require.optimized", | |
optimize: "none", | |
include: ["main"], | |
out: "out.js" | |
}) |
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 extend = Object.getOwnPropertyNames ? | |
function ecma5extend(obj) { | |
var proto = obj; | |
var protos = []; | |
var result = {}; | |
var descriptors = {}; | |
while (proto) { | |
protos.push(proto); | |
proto = Object.getPrototypeOf(proto); |
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
/** | |
* Provides: | |
* Function extend(Function parent, Object config, Object statics); | |
* | |
* It extends constructors with it's methods | |
* Also provides to every method who overwrites another one | |
* with a this.base() method to invoke overwrote method. | |
* This feature is based in Dean Edwards implementation: | |
* http://dean.edwards.name/weblog/2006/03/base/ | |
* |
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
'use strict'; | |
var fs = require("fs"); | |
function scan(dir) { | |
var files = []; | |
fs.readdirSync(dir).forEach(function(file) { | |
var path = dir + '/' + file; | |
var stat = fs.statSync(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
//jshint camelcase:false | |
(function() { | |
function noop() {} | |
/** | |
* Returns true if {target} is a function | |
* | |
* @param target The object to analyze |
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
angular.module('remote-firebase', [ 'firebase' ]) | |
.value('firebaseServer', null) | |
.factory('remoteCollection', function(firebaseServer, angularFireCollection) { | |
return function(module) { | |
var url = firebaseServer + '/' + module; | |
var ref = new Firebase(url); | |
return angularFireCollection(ref); | |
}; |
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
'use strict'; | |
angular.module('mq-appcache', []) | |
.directive('manifest', function() { | |
return { | |
compile: function() { | |
if (window.applicationCache) { | |
applicationCache.addEventListener('updateready', function() { | |
console.log('New version downloaded, reload to see the changes.'); | |
}); |