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
{ | |
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', |
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
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. |
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('filterHelper', []); | |
angular.module('filterHelper').filter('bytes', function() { | |
return function(bytes, precision) { | |
var parsedBytes = parseFloat(bytes); | |
if (isNaN(parsedBytes) || !isFinite(bytes)) { | |
return '--'; | |
} |
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
clean: { | |
options: { | |
files: { | |
dot: true | |
} | |
}, | |
dist: [ '<%= yeoman.dist %>/*' ], | |
tmp: [ '<%= yeoman.tmp %>/*' ] | |
}, |
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
compass: { | |
options: { | |
sassDir: '<%= yeoman.app %>/styles', | |
cssDir: '.tmp/styles', | |
imagesDir: '<%= yeoman.app %>/images', | |
javascriptsDir: '<%= yeoman.app %>/scripts', | |
fontsDir: '<%= yeoman.app %>/styles/fonts', | |
importPath: '<%= yeoman.app %>/bower_components', | |
relativeAssets: false, | |
generatedImagesDir: '.tmp/images/generated', |
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(ele){ | |
var win = window, | |
addEvt = win.addEventListener, | |
y = ele.offsetHeight; | |
ele.style.transition = "0.2s"; | |
function hide () { | |
ele.style.opacity = 0.1; | |
} |
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
// Generated on 2013-06-06 using generator-angular 0.2.2 | |
'use strict'; | |
var LIVERELOAD_PORT = 35729; | |
var lrSnippet = require('connect-livereload')({ port: LIVERELOAD_PORT }); | |
var mountFolder = function (connect, dir) { | |
return connect.static(require('path').resolve(dir)); | |
}; | |
// # Globbing | |
// for performance reasons we're only matching one level down: |
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
alias cipr="git log -1 --pretty=format:'git commit -a --author="'"%an <%aE>" --message="%s %b"'"'" |
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($) { | |
$.fn.comboBox = function () { | |
var $this = $(this); | |
return $this.on("change", function(){ | |
if ( $this.val() === 'add' ) { | |
$("<input type='text' />").blur(function(e) { | |
e.preventDefault(); | |
var $i = $(this), | |
val = $i.val(), | |
selected = $this.find("option:contains('" + ucWord(val) + "')"); |