Skip to content

Instantly share code, notes, and snippets.

/* ----------------------------------------------------------------------------------------------------
Super Form Reset
A couple of things to watch out for:
- IE8: If a text input doesn't have padding on all sides or none the text won't be centered.
- The default border sizes on text inputs in all UAs seem to be slightly different. You're better off using custom borders.
- You NEED to set the font-size and family on all form elements
- Search inputs need to have their appearance reset and the box-sizing set to content-box to match other UAs
@fourpixels
fourpixels / gist:5717773281063087f034a324c95054be
Created September 1, 2017 16:24 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@fourpixels
fourpixels / js-inheritance.md
Created December 31, 2017 16:23 — forked from andrewdelprete/js-inheritance.md
Learning to inherit with Javascript

Functional Inheritance

Basically a function in which you add additional functionality before returning it. Because the additional functionality is considered to be cloned from one function to another it doesn't matter if you inherit from a base / super function or some non-related function, it all works.

/**
 * friend(name)
 * Constructor Function - Must be instantiated to be used.
 */
var friend = function(name) { // Function Expression
    this.name = name,