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
/** | |
* Copyright © 2009-2012 A. Matías Quezada | |
*/ | |
(function(root) { | |
var undefined; | |
function extend(config) { | |
var parent = this; |
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(root) { | |
var current = { | |
parent: null, | |
config: null, | |
}; | |
function clazz(name) { | |
function Class(config) { |
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
/** | |
* 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.'); | |
}); |
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 find(term, obj, name) { | |
var key = '!"·$% &/()'; | |
var visited = Date.now() + Math.random(); | |
var _current = [{}]; | |
var _keys = [[name || 'your_object']]; | |
var _index = [0]; | |
var results = []; | |
var current = obj; | |
var keys = Object.keys(obj) |
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
#!/usr/bin/env node | |
//jshint node:true | |
'use strict'; | |
var fs = require('fs'); | |
var url = require('url'); | |
var http = require('http'); | |
var port = process.argv[2]; | |
var folder = process.argv[3]; |