Skip to content

Instantly share code, notes, and snippets.

View eddiemonge's full-sized avatar

Eddie Monge Jr eddiemonge

View GitHub Profile
{
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',
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.
angular.module('filterHelper', []);
angular.module('filterHelper').filter('bytes', function() {
return function(bytes, precision) {
var parsedBytes = parseFloat(bytes);
if (isNaN(parsedBytes) || !isFinite(bytes)) {
return '--';
}
clean: {
options: {
files: {
dot: true
}
},
dist: [ '<%= yeoman.dist %>/*' ],
tmp: [ '<%= yeoman.tmp %>/*' ]
},
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',
@eddiemonge
eddiemonge / fixedbar.js
Created June 11, 2013 21:27
Hides/shows a fixed bar element on a page. Accepts a DOM node as ELEMENT. Y can be adjusted as needed.
(function(ele){
var win = window,
addEvt = win.addEventListener,
y = ele.offsetHeight;
ele.style.transition = "0.2s";
function hide () {
ele.style.opacity = 0.1;
}
// 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:
diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js
index 1c641eb..4d5dd3b 100644
--- a/ui/jquery.ui.menu.js
+++ b/ui/jquery.ui.menu.js
@@ -35,6 +35,7 @@ $.widget( "ui.menu", {
focus: null,
select: null
},
+ mousePosition: {},
@eddiemonge
eddiemonge / cipr.sh
Created October 16, 2012 19:02 — forked from kswedberg/cipr.sh
alias for git commit line merging head -1
alias cipr="git log -1 --pretty=format:'git commit -a --author="'"%an <%aE>" --message="%s %b"'"'"
@eddiemonge
eddiemonge / jquery.combobox.js
Created February 17, 2012 01:16
jQuery Simple Add Option ComboBox
(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) + "')");