Skip to content

Instantly share code, notes, and snippets.

View eddiemonge's full-sized avatar

Eddie Monge Jr eddiemonge

View GitHub Profile
clean: {
options: {
files: {
dot: true
}
},
dist: [ '<%= yeoman.dist %>/*' ],
tmp: [ '<%= yeoman.tmp %>/*' ]
},
angular.module('filterHelper', []);
angular.module('filterHelper').filter('bytes', function() {
return function(bytes, precision) {
var parsedBytes = parseFloat(bytes);
if (isNaN(parsedBytes) || !isFinite(bytes)) {
return '--';
}
Yeoman is a mask worn by the following members of the open-source community:
Paul Irish, Addy Osmani, Mickael Daniel, Sindre Sorhus, Eric Bidelman,
Frederick Ros, Brian Ford, Pascal Hartig, Stephen Sawchuk, and countless
other contributors.
[?] What would you like to do? Run the Webapp generator (0.4.2)
Before you create a new application, be sure you are in the directory you
wish your application to be dropped into.
{
main: {
js: 'js/bootstrap.js',
css: 'css/bootstrap.css'
},
files: {
css: ['css/bootstrap-theme.css']
fonts: [
'fonts/glyphicons-halflings-regular.eot',
'fonts/glyphicons-halflings-regular.svg',
@eddiemonge
eddiemonge / gist:10015110
Created April 7, 2014 05:08
jit-grunt vs load-grunt-tasks
Load tasks
Execution Time (2014-04-07 04:55:03 UTC)
loading tasks 477ms ▇▇▇▇▇ 8%
clean:dist 66ms ▇ 1%
clean:tmp 184ms ▇▇ 3%
coffee:build 426ms ▇▇▇▇ 7%
jade:main 215ms ▇▇ 3%
jade:others 480ms ▇▇▇▇▇ 8%
stylus:main 652ms ▇▇▇▇▇▇▇ 10%
copy:app 80ms ▇ 1%
@eddiemonge
eddiemonge / changelog.sh
Created June 20, 2014 17:31
Git Changelog script
git log --since=0.4.9 --no-merges --pretty="* [\`%h\`](https://github.com/yeoman/generator-webapp/commit/%h) %s"
@eddiemonge
eddiemonge / app.js
Created August 5, 2014 01:16
Angular Module style 1
'use strict';
angular.module('myApp', ['widget']);
@eddiemonge
eddiemonge / app.js
Created August 5, 2014 01:21
Angular Module style 2
'use strict';
angular.module('myApp', [
'widget.bye',
'widget.hello'
]);
wiredep = require( 'wiredep' )
path = require 'path'
# Karma configuration
module.exports = ( config ) ->
config.set
# enable / disable watching file and executing tests whenever any file changes
autoWatch: true
# base path, that will be used to resolve files relative to this file