Skip to content

Instantly share code, notes, and snippets.

View philhawksworth's full-sized avatar
💭
Working remotely from home on St Albans

Phil Hawksworth philhawksworth

💭
Working remotely from home on St Albans
View GitHub Profile
Array.prototype.contains = function(item) {
return this.indexOf(item) != -1;
};
var a = ['foo', 'bar', 'baz'];
alert(a.contains('bar'));
// Handy but arguably not always a good idea...
<!-- A recently discovered virtual-floater! -->
<!-- ..for when a 301 is too obvious. -->
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset rows="100%,*" cols="100%" border="0" framespacing="0">
<frame src="http://targetdomain.com" frameborder="NO"
<div class='tt-calendar'>
<span class="vevent">
<a class="url" href="http://www.web2con.com/">http://www.web2con.com/</a>
<span class="summary">Web 2.0 Conference</span>:
<span class="dtstart">
<abbr class="value" title="2010-06-24">this Tuesday</abbr> at
<span class="value">18:30</span>
</span>
<span class="dtend">
<div id='server-UTC'>YYYY-MM-DDThh:mm</div>
<ul class="tt-gadget tt-clock-gadget-[DISPLAY TYPE]">
<li class="tt-date-time">
<span class="tt-location"><a href="/link-to-office-location">UK</a></span> <!-- Label -->
<span class="tt-time-span">0</span> <!-- Offset to UTC in hours -->
</li>
...
</ul>
We couldn’t find that file to show.
We couldn’t find that file to show.
%3Cp%3Ebar%3C%2Fp%3E