Skip to content

Instantly share code, notes, and snippets.

Working from home

Eric Clemmons ericclemmons

Working from home
Block or report user

Report or block ericclemmons

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ericclemmons / HappyFactory.js
Created Aug 27, 2015
ES6 Classes as Factories
View HappyFactory.js
class HappyFactory {
constructor(message) {
return Promise.resolve(`${message} there!`);
new HappyFactory("Howdy").then(::console.log);
// "Howdy there!"
ericclemmons / 0_reuse_code.js
Created Aug 6, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
ericclemmons /
Created Aug 6, 2014 — forked from jookyboi/
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.


  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
ericclemmons /
Created Aug 6, 2014 — forked from jookyboi/
CSS libraries and guides to bring some order to the chaos.


  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.


ericclemmons / jstransform-require.js
Created Aug 12, 2014
JSTransform require.extension to auto-magically convert ES6 to ES5 during runtime.
View jstransform-require.js
var fs = require('fs');
var jstransform = require('jstransform');
var path = require('path');
var js = require.extensions['.js'];
module.exports = function(visitors) {
visitors = visitors.reduce(function(visitors, visitor) {
return visitors.concat(visitor.visitorList);
}, []);
ericclemmons / bootstrap.jsx
Created Oct 6, 2014
Gulp + Webpack + React is SLOW
View bootstrap.jsx
* @jsx React.DOM
var React = require('react');
var Router = require('react-router');
var Routes = Router.Routes;
var Route = Router.Route;
var DefaultRoute = Router.DefaultRoute;
ericclemmons / FluxContainer.js
Last active Aug 29, 2015
Flummox FluxContainer that runs actions, watches stores, and renders a component.
View FluxContainer.js
import assign from "object-assign";
import Flux from "flummox";
import React from "react";
export default React.createClass({
displayName: "FluxContainer",
contextTypes: {
flux: React.PropTypes.instanceOf(Flux),
ericclemmons / .eslintrc
Created Mar 24, 2015
My latest .eslintrc
View .eslintrc
"ecmaFeatures": {
"arrowFunctions": true,
"binaryLiterals": false,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": false,
"generators": true,
ericclemmons / My_Db_Table.php
Created Jun 15, 2009
Add "findBy" magic method to Zend_Db_Table objects
View My_Db_Table.php
* My_Db_Table
* Adds "findBy" magic method to Zend_Db_Table objects
* @author Eric Clemmons
ericclemmons / svndiff
Created Aug 12, 2009
Run "svndiff" and view the results in FileMerge (OS X)
View svndiff
from sys import argv
from os import execlp
import re
left = "";
right = "";
You can’t perform that action at this time.