Skip to content

Instantly share code, notes, and snippets.

View james-andrewsmith's full-sized avatar
👋

James Andrew-Smith james-andrewsmith

👋
  • Sydney, Australia
  • 18:24 (UTC +10:00)
View GitHub Profile
@james-andrewsmith
james-andrewsmith / data-example.json
Created November 21, 2024 11:02 — forked from swayvil/data-example.json
D3.js collapsing tree with boxes
{
"tree" : {
"nodeName" : "NODE NAME 1",
"name" : "NODE NAME 1",
"type" : "type3",
"code" : "N1",
"label" : "Node name 1",
"version" : "v1.0",
"link" : {
"name" : "Link NODE NAME 1",
@james-andrewsmith
james-andrewsmith / cls.js
Created February 21, 2014 23:34 — forked from ironsjp/cls.js
/**
* cache script and css to localStorage (same domain only)
*
* $CLS.style("a.css");
*
* $CLS.script("jquery-1.5.2.min.js").wait()
* .script("a.js")
* .script("b.js")
* .script("c.js")
* .wait(function() {
@james-andrewsmith
james-andrewsmith / cufon-lazy-load.html
Created April 13, 2011 01:37
An example fix for cufon lazy loading issues with IE6,7,8
<!doctype html>
<html lang="en">
<head>
<title>Cufon IE6,7,8 Lazy Loading</title>
<script type="text/javascript" src="script/head.js"></script>
<script type="text/javascript">
if (head.browser.mozilla || head.browser.webkit || head.browser.opera ||
(head.browser.ie && (head.browser.version == '9.0'))) {
head.js('script/jquery.min.js',