Skip to content

Instantly share code, notes, and snippets.

View codeguy's full-sized avatar

Josh Lockhart codeguy

View GitHub Profile
@codeguy
codeguy / console.js
Created July 8, 2013 03:52
A wrapper for `console.log` for browsers that lack support (e.g. IE)
// http://paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
window.log = function () {
log.history = log.history || [];
log.history.push(arguments);
if (this.console) {
console.log(Array.prototype.slice.call(arguments));
}
};
@codeguy
codeguy / index.html
Last active December 19, 2015 10:59
HTML Boilerplate
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<title>My Document</title>
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<link rel="stylesheet" href="/css/all.css"/>
<link rel="shortcut icon" href="/images/favicon.ico"/>
@ziadoz
ziadoz / awesome-php.md
Last active April 17, 2024 21:06
Awesome PHP — A curated list of amazingly awesome PHP libraries, resources and shiny things.