Skip to content

Instantly share code, notes, and snippets.

Olly Hodgson OllyHodgson

Block or report user

Report or block OllyHodgson

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
OllyHodgson / sparkline.svg
Created Jan 7, 2013
Stuart Langridge's Simple SVG sparklines — — but using an object element instead of an embed.
View sparkline.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OllyHodgson / encoding.htm;
Created Nov 30, 2012
While testing a system, we found some "interesting" HTML encoding behaviour. For a given value of "interesting", obviously.
View encoding.htm;
<!doctype html>
<meta charset="utf-8">
<title>Escaping fun!</title>
<!-- Renders as 'abcd' -->
<!-- Renders as 'abcd<&efg' -->
OllyHodgson / buttons.css
Created Oct 11, 2012
Remarkably similarly stlyed buttons across IE7/8/9, FF, Chrome, Safari and Opera
View buttons.css
* e.g. <button>Click me!</button>
* or <a class="button">Click me!</a>
* or <input type="submit" value="Click me!" />
.outer a.button,
.outer a.button:link,
OllyHodgson / dabblet.css
Created Oct 3, 2012 — forked from cahnory/dabblet.css
Box shadow art, CSS transitions, via
View dabblet.css
* Box shadow art, CSS transitions, via
.image1 {
background: red;
font-size: 10px;
height: 1em;
width: 1em;
/* Drawing */
OllyHodgson / Regex for removing SharePoint Designer 2010 specific markup
Created Aug 29, 2012
Opening an .aspx in SharePoint Designer 2010 litters it with SPD-specific markup. This removes most (if not all) of it. Note I run this one in Sublime Text 2, other editors might need some tweaking. Also note the leading space.
OllyHodgson / SP2010-ContentType-to-HTML.js
Last active Oct 6, 2015
Scrapes a Sharepoint 2010 Content Type page to get the column names and display names. Outputs some HTML or the FieldNames needed for a page layout file. Exceedingly limited, but does what I need it to.
View SP2010-ContentType-to-HTML.js
Run this against a content type page to get the HTML for the columns!
els = array of elements
type = "li"|"td"|"th"|"FieldRef"
function create(el, type) {
var fieldname,
outputHTML = '';
OllyHodgson / more-buttons.html
Created Aug 4, 2011
More experiments with HTML+CSS button styling
View more-buttons.html
<!DOCTYPE html>
<title>Button styles</title>
Reset styles
Based on Eric Meyer's fine work:
OllyHodgson / jquery.imgresizer.js
Created Jul 27, 2011
Image scaling in IE6 and 7 is bobbins. This script uses Microsoft's proprietary filter gubbins to make it better.
View jquery.imgresizer.js
Image scaling in IE6 and 7 is bobbins. This uses their proprietary filter gubbins to make it better.
Original by Ethan Marcotte, at
Rejigged by Olly Hodgson.
So Ethan [@beep] wrote a script that'll make IE6 and 7 on Windows resize
images beautifully []
(without the performance hit you take from using -ms-interpolation-mode:
bicubic;). Tom H pointed out in the comments that it broke the right-click
OllyHodgson / SP2007-BasicStart.xsl
Created May 19, 2011
Starting point for XSL in Sharepoint 2007 Data View Web Parts
View SP2007-BasicStart.xsl
NOTE: Add the SuppressWebPartChrome="True" attribute to <WebPartPages:DataFormWebPart> to get rid of the tables SharePoint normally surrounds the web part with.
exclude-result-prefixes="xsl msxsl ddwrt x d asp ddwrt2 SharePoint __designer"
OllyHodgson / buttons.html
Created Mar 23, 2011
A nice CSS button style for <a> elements. Tested in IE6-9, Firefox 3.6-4, Chrome 11, Safari 5, Opera 11.
View buttons.html
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie6"><![endif]-->
<!--[if IE 7 ]><html class="ie7"><![endif]-->
<!--[if IE 8 ]><html class="ie8"><![endif]-->
<!--[if IE 9 ]><html class="ie9"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--><html><!--<![endif]-->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta charset="utf-8">
<title>CSS Buttons</title>
You can’t perform that action at this time.