Skip to content

Instantly share code, notes, and snippets.

View eddiemonge's full-sized avatar

Eddie Monge Jr eddiemonge

View GitHub Profile
@eddiemonge
eddiemonge / domain.conf
Created May 4, 2011 18:37
Virtual Host Example
<VirtualHost IPADDRESS:PORT>
ServerAdmin real_or_fake@emailaddress.com
ServerName domain.com
ServerAlias www.domain.com
DocumentRoot /var/www/html
<Directory "/var/www/html">
Options FollowSymLinks
AllowOverride All
Order allow,deny
@eddiemonge
eddiemonge / jqm-patch.md
Created October 17, 2011 22:25
jQuery Mobile Bug Patching

Tips for jQuery Mobile Bug Patching

Requirements:

PHP Web Server

Some common ones:

@eddiemonge
eddiemonge / sass_converter.rb
Created November 7, 2011 03:34 — forked from wolfeidau/sass_converter.rb
Sass plugin for Jekyll
module Jekyll
# Sass plugin to convert .scss to .css
#
# Note: This is configured to use the new css like syntax available in sass.
require 'sass'
class SassConverter < Converter
safe true
priority :low
def matches(ext)
@eddiemonge
eddiemonge / .gitignore
Created December 3, 2011 23:13
Wordpress Ignore Files
# System, IDE and tmp files
.DS_Store*
ehthumbs.db
Icon?
Thumbs.db
# Wordpress Files
.htaccess
wp-*.php
@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) + "')");
@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"'"'"
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: {},
// 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:
@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;
}
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',