Skip to content

Instantly share code, notes, and snippets.

View mattandrews's full-sized avatar

Matt Andrews mattandrews

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<title>fluid grid demo</title>
<link rel="stylesheet" type="text/css" href="fluid-grid.css" />
</head>
<body>
<div class="row-fluid">
<div class="span12">header</div>
</div>
// ==UserScript==
// @name SigShade
// @namespace http://userstyles.org
// @description Truncates &lt;pre> blocks in Gmail.
// @author chaplang
// @homepage http://userstyles.org/styles/93531
// @include https://mail.google.com*
// @run-at document-start
// ==/UserScript==
(function() {
.row {
margin-left: -20px;
*zoom: 1;
}
.row:before,
.row:after {
display: table;
line-height: 0;
content: "";
.row-fluid {
width: 100%;
*zoom: 1;
}
.row-fluid:before,
.row-fluid:after {
display: table;
line-height: 0;
content: "";
/* set some default / browser reset values */
body {
font-family: arial;
font-size: 12px;
}
ul, li {
margin: 0px;
padding: 0px;
<!DOCTYPE html>
<html>
<head>
<title>Matt's favourite websites</title>
</head>
<body>
<ul class="menu">
<li>
/* set some base styles for the whole document */
body {
font-size: 12px;
line-height: 18px;
font-family: arial;
background: #ededed;
color: #333333;
}
/* this removes the bullet points from the list */
body {
font-size: 12px;
line-height: 18px;
font-family: arial;
background: #ededed;
color: #333333;
}
ul {
list-style: none;
@mattandrews
mattandrews / gist:5100010
Created March 6, 2013 15:20
Some job links for Guardian roles
<p>The Guardian is hiring for developers. We're looking for people to fill the following four positions:</p>
<ul>
<li><strong><a href="http://gs10.globalsuccessor.com/fe/tpl_GuardianNews01.asp?newms=jj&id=83069&aid=13972">Software Developer</a></strong></li>
<li><strong><a href="http://gs10.globalsuccessor.com/fe/tpl_GuardianNews01.asp?newms=jj&id=94392&aid=13972">JavaScript Engineer</a></strong></li>
<li><strong><a href="http://gs10.globalsuccessor.com/fe/tpl_GuardianNews01.asp?newms=jj&id=94393&aid=13972">Client-side Developer</a></strong></li>
<li><strong><a href="http://gs10.globalsuccessor.com/fe/tpl_GuardianNews01.asp?newms=jj&id=82958&aid=13972">iOS Software Developer</a></strong></li>
- March 2013
@mattandrews
mattandrews / main.js
Created December 10, 2015 16:01
Example usage of Web Audio API
define(['audio'], function (audio) {
var mp3s = {
'track1': 'foo/bar/1.mp3',
'track2': 'foo/bar/1.mp3',
'track3': 'foo/bar/1.mp3'
};
audio.init(mp3s, function() {
// this callback will fire when all the mp3s