In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:
- Separate big codebases into multiple repositories.
// underscore addon with sum, mean, median and nrange function | |
// see details below | |
_.mixin({ | |
// Return sum of the elements | |
sum : function(obj, iterator, context) { | |
if (!iterator && _.isEmpty(obj)) return 0; | |
var result = 0; | |
if (!iterator && _.isArray(obj)){ |