Skip to content

Instantly share code, notes, and snippets.

View millermedeiros's full-sized avatar

Miller Medeiros millermedeiros

View GitHub Profile
@millermedeiros
millermedeiros / gist:6595977
Last active December 23, 2015 06:49 — forked from rmurphey/gist:5052882
rename "setLocationOnEvent" to "setLocationOnValChange"
/*****************************************************************************
* __ __ _ _ ___ _
* \ \/ _\ /\/\ (_)_ __ | |_ _ _ / __\ __ ___ ___| |__
* \ \ \ / \| | '_ \| __| | | | / _\| '__/ _ \/ __| '_ \
* /\_/ /\ \ / /\/\ \ | | | | |_| |_| | / / | | | __/\__ \ | | |
* \___/\__/ \/ \/_|_| |_|\__|\__, | \/ |_| \___||___/_| |_|
* |___/
*
* Identifying and Eliminating Code Smells
*
@millermedeiros
millermedeiros / gist:2690836
Created May 13, 2012 23:52 — forked from karlwestin/gist:2690501
Refactoring JS for testing part 5 – refactor
/*
* Karl Westin
* Part of the "refactoring javascript for unit testing" blog post
* ---
* Quick refactor by Miller Medeiros (http://blog.millermedeiros.com)
* Didn't tested the code during/after changes, might contain errors.
*/
function Lightbox(parent) {
@millermedeiros
millermedeiros / universal-module.js
Created September 29, 2011 19:21 — forked from ryanflorence/universal-module.js
Universal JavaScript Module, supports AMD (RequireJS), Node.js, and the browser.
(function(def){
def('myModule', ['someDependency', 'somethingElse'], function(someDependency, somethingElse){
//return the module's API
return {};
});
}(
// wrapper to run code everywhere
typeof define === 'function' && define.amd?
@millermedeiros
millermedeiros / LICENSE.txt
Created May 17, 2011 14:58 — forked from jed/LICENSE.txt
route client urls with 404s and pattern captures
Copyright (c) 2011 Jed Schmidt, http://jed.is
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
package rinaldi.util {
import flash.utils.getQualifiedClassName;
/**
*
* Just check if an object is a Vector instance or not.
*
* @param p_object Object to be checked.