Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Site updated at 2012-01-11 10:38:13 UTC

  • Loading branch information...
commit eb3eebe289709020662dbad6a19f0ca11e2827f8 1 parent f13a945
@norm2782 authored
View
2  atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Norm 2782]]></title>
<link href="http://norm2782.github.com/atom.xml" rel="self"/>
<link href="http://norm2782.github.com/"/>
- <updated>2012-01-11T10:42:18+01:00</updated>
+ <updated>2012-01-11T11:38:09+01:00</updated>
<id>http://norm2782.github.com/</id>
<author>
<name><![CDATA[Jurriën Stutterheim]]></name>
View
21 blog/2012/01/01/using-digestive-functors-with-heist/index.html
@@ -23,10 +23,12 @@
<link rel="canonical" href="http://norm2782.github.com/blog/2012/01/01/using-digestive-functors-with-heist">
<link href="/favicon.png" rel="icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
+ <link href="/stylesheets/github.css" media="screen, projection" rel="stylesheet" type="text/css">
<script type="text/javascript" src="http://datejs.googlecode.com/svn/trunk/build/date-en-GB.js"></script>
<script type="text/javascript" src="http://github.github.com/github-flavored-markdown/scripts/showdown.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
- <script type="text/javascript">
+ <script src="/javascripts/highlight.pack.js"></script>
+ <script>
var converter = new Showdown.converter();
function loadComments(data) {
@@ -35,15 +37,22 @@
var cuserlink = "https://github.com/" + data.data[i].user.login;
var clink = "https://github.com/norm2782/norm2782.github.com/issues/2#issuecomment-" + data.data[i].url.substring(data.data[i].url.lastIndexOf("/")+1);
var cbody = converter.makeHtml(data.data[i].body);
+ cbody = cbody.replace(/\w+<br \/>/g, "");
var cgravatarlink = data.data[i].user.avatar_url.replace("s=30&", "");
var cdate = Date.parse(data.data[i].created_at).toString("yyyy-MM-dd HH:mm:ss");
- $("#comments").append('<div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="' + cgravatarlink + '" alt="" width="20" height="20"></div><a class="commentuser" href="' + cuserlink + '">' + cuser + '</a> <a class="commentdate" href="' + clink + '">' + cdate + '</a></div><div class="commentbody">' + cbody + '</div></div>');
+ jQuery("#comments").append('<div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="' + cgravatarlink + '" alt="" width="20" height="20"></div><a class="commentuser" href="' + cuserlink + '">' + cuser + '</a> <a class="commentdate" href="' + clink + '">' + cdate + '</a></div><div class="commentbody">' + cbody + '</div></div>');
}
+
+ jQuery('#comments code').each(function(i, e) {
+ hljs.highlightBlock(e, ' ')}
+ );
}
- $.ajax("https://api.github.com/repos/norm2782/norm2782.github.com/issues/2/comments", {
- dataType : "jsonp",
- jsonpCallback : "loadComments"
+ jQuery(document).ready(function() {
+ jQuery.ajax("https://api.github.com/repos/norm2782/norm2782.github.com/issues/2/comments", {
+ dataType : "jsonp",
+ jsonpCallback : "loadComments"
+ });
});
</script>
<script src="/javascripts/modernizr-2.0.js"></script>
@@ -562,7 +571,7 @@ <h1 class="entry-title">Using Digestive-functors With Heist</h1>
<script type="text/javascript">
(function() {
var script = document.createElement('script'); script.type = 'text/javascript'; script.async = true;
- script.src = 'http://apis.google.com/js/plusone.js';
+ script.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(script, s);
})();
</script>
View
21 blog/archives/index.html
@@ -22,10 +22,12 @@
<link rel="canonical" href="http://norm2782.github.com/blog/archives">
<link href="/favicon.png" rel="icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
+ <link href="/stylesheets/github.css" media="screen, projection" rel="stylesheet" type="text/css">
<script type="text/javascript" src="http://datejs.googlecode.com/svn/trunk/build/date-en-GB.js"></script>
<script type="text/javascript" src="http://github.github.com/github-flavored-markdown/scripts/showdown.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
- <script type="text/javascript">
+ <script src="/javascripts/highlight.pack.js"></script>
+ <script>
var converter = new Showdown.converter();
function loadComments(data) {
@@ -34,15 +36,22 @@
var cuserlink = "https://github.com/" + data.data[i].user.login;
var clink = "https://github.com/norm2782/norm2782.github.com/issues/#issuecomment-" + data.data[i].url.substring(data.data[i].url.lastIndexOf("/")+1);
var cbody = converter.makeHtml(data.data[i].body);
+ cbody = cbody.replace(/\w+<br \/>/g, "");
var cgravatarlink = data.data[i].user.avatar_url.replace("s=30&", "");
var cdate = Date.parse(data.data[i].created_at).toString("yyyy-MM-dd HH:mm:ss");
- $("#comments").append('<div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="' + cgravatarlink + '" alt="" width="20" height="20"></div><a class="commentuser" href="' + cuserlink + '">' + cuser + '</a> <a class="commentdate" href="' + clink + '">' + cdate + '</a></div><div class="commentbody">' + cbody + '</div></div>');
+ jQuery("#comments").append('<div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="' + cgravatarlink + '" alt="" width="20" height="20"></div><a class="commentuser" href="' + cuserlink + '">' + cuser + '</a> <a class="commentdate" href="' + clink + '">' + cdate + '</a></div><div class="commentbody">' + cbody + '</div></div>');
}
+
+ jQuery('#comments code').each(function(i, e) {
+ hljs.highlightBlock(e, ' ')}
+ );
}
- $.ajax("https://api.github.com/repos/norm2782/norm2782.github.com/issues//comments", {
- dataType : "jsonp",
- jsonpCallback : "loadComments"
+ jQuery(document).ready(function() {
+ jQuery.ajax("https://api.github.com/repos/norm2782/norm2782.github.com/issues//comments", {
+ dataType : "jsonp",
+ jsonpCallback : "loadComments"
+ });
});
</script>
<script src="/javascripts/modernizr-2.0.js"></script>
@@ -210,7 +219,7 @@ <h1 class="entry-title">Blog Archive</h1>
<script type="text/javascript">
(function() {
var script = document.createElement('script'); script.type = 'text/javascript'; script.async = true;
- script.src = 'http://apis.google.com/js/plusone.js';
+ script.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(script, s);
})();
</script>
View
2  blog/categories/digestive-functors/atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Category: digestive-functors | Norm 2782]]></title>
<link href="http://norm2782.github.com/blog/categories/digestive-functors/atom.xml" rel="self"/>
<link href="http://norm2782.github.com/"/>
- <updated>2012-01-11T10:42:18+01:00</updated>
+ <updated>2012-01-11T11:38:09+01:00</updated>
<id>http://norm2782.github.com/</id>
<author>
<name><![CDATA[Jurriën Stutterheim]]></name>
View
21 blog/categories/digestive-functors/index.html
@@ -21,10 +21,12 @@
<link rel="canonical" href="http://norm2782.github.comblog/categories/digestive-functors">
<link href="/favicon.png" rel="icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
+ <link href="/stylesheets/github.css" media="screen, projection" rel="stylesheet" type="text/css">
<script type="text/javascript" src="http://datejs.googlecode.com/svn/trunk/build/date-en-GB.js"></script>
<script type="text/javascript" src="http://github.github.com/github-flavored-markdown/scripts/showdown.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
- <script type="text/javascript">
+ <script src="/javascripts/highlight.pack.js"></script>
+ <script>
var converter = new Showdown.converter();
function loadComments(data) {
@@ -33,15 +35,22 @@
var cuserlink = "https://github.com/" + data.data[i].user.login;
var clink = "https://github.com/norm2782/norm2782.github.com/issues/#issuecomment-" + data.data[i].url.substring(data.data[i].url.lastIndexOf("/")+1);
var cbody = converter.makeHtml(data.data[i].body);
+ cbody = cbody.replace(/\w+<br \/>/g, "");
var cgravatarlink = data.data[i].user.avatar_url.replace("s=30&", "");
var cdate = Date.parse(data.data[i].created_at).toString("yyyy-MM-dd HH:mm:ss");
- $("#comments").append('<div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="' + cgravatarlink + '" alt="" width="20" height="20"></div><a class="commentuser" href="' + cuserlink + '">' + cuser + '</a> <a class="commentdate" href="' + clink + '">' + cdate + '</a></div><div class="commentbody">' + cbody + '</div></div>');
+ jQuery("#comments").append('<div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="' + cgravatarlink + '" alt="" width="20" height="20"></div><a class="commentuser" href="' + cuserlink + '">' + cuser + '</a> <a class="commentdate" href="' + clink + '">' + cdate + '</a></div><div class="commentbody">' + cbody + '</div></div>');
}
+
+ jQuery('#comments code').each(function(i, e) {
+ hljs.highlightBlock(e, ' ')}
+ );
}
- $.ajax("https://api.github.com/repos/norm2782/norm2782.github.com/issues//comments", {
- dataType : "jsonp",
- jsonpCallback : "loadComments"
+ jQuery(document).ready(function() {
+ jQuery.ajax("https://api.github.com/repos/norm2782/norm2782.github.com/issues//comments", {
+ dataType : "jsonp",
+ jsonpCallback : "loadComments"
+ });
});
</script>
<script src="/javascripts/modernizr-2.0.js"></script>
@@ -209,7 +218,7 @@ <h1 class="entry-title">Category: Digestive-functors</h1>
<script type="text/javascript">
(function() {
var script = document.createElement('script'); script.type = 'text/javascript'; script.async = true;
- script.src = 'http://apis.google.com/js/plusone.js';
+ script.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(script, s);
})();
</script>
View
2  blog/categories/haskell/atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Category: Haskell | Norm 2782]]></title>
<link href="http://norm2782.github.com/blog/categories/haskell/atom.xml" rel="self"/>
<link href="http://norm2782.github.com/"/>
- <updated>2012-01-11T10:42:18+01:00</updated>
+ <updated>2012-01-11T11:38:09+01:00</updated>
<id>http://norm2782.github.com/</id>
<author>
<name><![CDATA[Jurriën Stutterheim]]></name>
View
21 blog/categories/haskell/index.html
@@ -21,10 +21,12 @@
<link rel="canonical" href="http://norm2782.github.comblog/categories/haskell">
<link href="/favicon.png" rel="icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
+ <link href="/stylesheets/github.css" media="screen, projection" rel="stylesheet" type="text/css">
<script type="text/javascript" src="http://datejs.googlecode.com/svn/trunk/build/date-en-GB.js"></script>
<script type="text/javascript" src="http://github.github.com/github-flavored-markdown/scripts/showdown.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
- <script type="text/javascript">
+ <script src="/javascripts/highlight.pack.js"></script>
+ <script>
var converter = new Showdown.converter();
function loadComments(data) {
@@ -33,15 +35,22 @@
var cuserlink = "https://github.com/" + data.data[i].user.login;
var clink = "https://github.com/norm2782/norm2782.github.com/issues/#issuecomment-" + data.data[i].url.substring(data.data[i].url.lastIndexOf("/")+1);
var cbody = converter.makeHtml(data.data[i].body);
+ cbody = cbody.replace(/\w+<br \/>/g, "");
var cgravatarlink = data.data[i].user.avatar_url.replace("s=30&", "");
var cdate = Date.parse(data.data[i].created_at).toString("yyyy-MM-dd HH:mm:ss");
- $("#comments").append('<div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="' + cgravatarlink + '" alt="" width="20" height="20"></div><a class="commentuser" href="' + cuserlink + '">' + cuser + '</a> <a class="commentdate" href="' + clink + '">' + cdate + '</a></div><div class="commentbody">' + cbody + '</div></div>');
+ jQuery("#comments").append('<div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="' + cgravatarlink + '" alt="" width="20" height="20"></div><a class="commentuser" href="' + cuserlink + '">' + cuser + '</a> <a class="commentdate" href="' + clink + '">' + cdate + '</a></div><div class="commentbody">' + cbody + '</div></div>');
}
+
+ jQuery('#comments code').each(function(i, e) {
+ hljs.highlightBlock(e, ' ')}
+ );
}
- $.ajax("https://api.github.com/repos/norm2782/norm2782.github.com/issues//comments", {
- dataType : "jsonp",
- jsonpCallback : "loadComments"
+ jQuery(document).ready(function() {
+ jQuery.ajax("https://api.github.com/repos/norm2782/norm2782.github.com/issues//comments", {
+ dataType : "jsonp",
+ jsonpCallback : "loadComments"
+ });
});
</script>
<script src="/javascripts/modernizr-2.0.js"></script>
@@ -209,7 +218,7 @@ <h1 class="entry-title">Category: Haskell</h1>
<script type="text/javascript">
(function() {
var script = document.createElement('script'); script.type = 'text/javascript'; script.async = true;
- script.src = 'http://apis.google.com/js/plusone.js';
+ script.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(script, s);
})();
</script>
View
2  blog/categories/heist/atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Category: Heist | Norm 2782]]></title>
<link href="http://norm2782.github.com/blog/categories/heist/atom.xml" rel="self"/>
<link href="http://norm2782.github.com/"/>
- <updated>2012-01-11T10:42:18+01:00</updated>
+ <updated>2012-01-11T11:38:09+01:00</updated>
<id>http://norm2782.github.com/</id>
<author>
<name><![CDATA[Jurriën Stutterheim]]></name>
View
21 blog/categories/heist/index.html
@@ -21,10 +21,12 @@
<link rel="canonical" href="http://norm2782.github.comblog/categories/heist">
<link href="/favicon.png" rel="icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
+ <link href="/stylesheets/github.css" media="screen, projection" rel="stylesheet" type="text/css">
<script type="text/javascript" src="http://datejs.googlecode.com/svn/trunk/build/date-en-GB.js"></script>
<script type="text/javascript" src="http://github.github.com/github-flavored-markdown/scripts/showdown.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
- <script type="text/javascript">
+ <script src="/javascripts/highlight.pack.js"></script>
+ <script>
var converter = new Showdown.converter();
function loadComments(data) {
@@ -33,15 +35,22 @@
var cuserlink = "https://github.com/" + data.data[i].user.login;
var clink = "https://github.com/norm2782/norm2782.github.com/issues/#issuecomment-" + data.data[i].url.substring(data.data[i].url.lastIndexOf("/")+1);
var cbody = converter.makeHtml(data.data[i].body);
+ cbody = cbody.replace(/\w+<br \/>/g, "");
var cgravatarlink = data.data[i].user.avatar_url.replace("s=30&", "");
var cdate = Date.parse(data.data[i].created_at).toString("yyyy-MM-dd HH:mm:ss");
- $("#comments").append('<div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="' + cgravatarlink + '" alt="" width="20" height="20"></div><a class="commentuser" href="' + cuserlink + '">' + cuser + '</a> <a class="commentdate" href="' + clink + '">' + cdate + '</a></div><div class="commentbody">' + cbody + '</div></div>');
+ jQuery("#comments").append('<div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="' + cgravatarlink + '" alt="" width="20" height="20"></div><a class="commentuser" href="' + cuserlink + '">' + cuser + '</a> <a class="commentdate" href="' + clink + '">' + cdate + '</a></div><div class="commentbody">' + cbody + '</div></div>');
}
+
+ jQuery('#comments code').each(function(i, e) {
+ hljs.highlightBlock(e, ' ')}
+ );
}
- $.ajax("https://api.github.com/repos/norm2782/norm2782.github.com/issues//comments", {
- dataType : "jsonp",
- jsonpCallback : "loadComments"
+ jQuery(document).ready(function() {
+ jQuery.ajax("https://api.github.com/repos/norm2782/norm2782.github.com/issues//comments", {
+ dataType : "jsonp",
+ jsonpCallback : "loadComments"
+ });
});
</script>
<script src="/javascripts/modernizr-2.0.js"></script>
@@ -209,7 +218,7 @@ <h1 class="entry-title">Category: Heist</h1>
<script type="text/javascript">
(function() {
var script = document.createElement('script'); script.type = 'text/javascript'; script.async = true;
- script.src = 'http://apis.google.com/js/plusone.js';
+ script.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(script, s);
})();
</script>
View
2  blog/categories/snap/atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Category: Snap | Norm 2782]]></title>
<link href="http://norm2782.github.com/blog/categories/snap/atom.xml" rel="self"/>
<link href="http://norm2782.github.com/"/>
- <updated>2012-01-11T10:42:18+01:00</updated>
+ <updated>2012-01-11T11:38:09+01:00</updated>
<id>http://norm2782.github.com/</id>
<author>
<name><![CDATA[Jurriën Stutterheim]]></name>
View
21 blog/categories/snap/index.html
@@ -21,10 +21,12 @@
<link rel="canonical" href="http://norm2782.github.comblog/categories/snap">
<link href="/favicon.png" rel="icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
+ <link href="/stylesheets/github.css" media="screen, projection" rel="stylesheet" type="text/css">
<script type="text/javascript" src="http://datejs.googlecode.com/svn/trunk/build/date-en-GB.js"></script>
<script type="text/javascript" src="http://github.github.com/github-flavored-markdown/scripts/showdown.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
- <script type="text/javascript">
+ <script src="/javascripts/highlight.pack.js"></script>
+ <script>
var converter = new Showdown.converter();
function loadComments(data) {
@@ -33,15 +35,22 @@
var cuserlink = "https://github.com/" + data.data[i].user.login;
var clink = "https://github.com/norm2782/norm2782.github.com/issues/#issuecomment-" + data.data[i].url.substring(data.data[i].url.lastIndexOf("/")+1);
var cbody = converter.makeHtml(data.data[i].body);
+ cbody = cbody.replace(/\w+<br \/>/g, "");
var cgravatarlink = data.data[i].user.avatar_url.replace("s=30&", "");
var cdate = Date.parse(data.data[i].created_at).toString("yyyy-MM-dd HH:mm:ss");
- $("#comments").append('<div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="' + cgravatarlink + '" alt="" width="20" height="20"></div><a class="commentuser" href="' + cuserlink + '">' + cuser + '</a> <a class="commentdate" href="' + clink + '">' + cdate + '</a></div><div class="commentbody">' + cbody + '</div></div>');
+ jQuery("#comments").append('<div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="' + cgravatarlink + '" alt="" width="20" height="20"></div><a class="commentuser" href="' + cuserlink + '">' + cuser + '</a> <a class="commentdate" href="' + clink + '">' + cdate + '</a></div><div class="commentbody">' + cbody + '</div></div>');
}
+
+ jQuery('#comments code').each(function(i, e) {
+ hljs.highlightBlock(e, ' ')}
+ );
}
- $.ajax("https://api.github.com/repos/norm2782/norm2782.github.com/issues//comments", {
- dataType : "jsonp",
- jsonpCallback : "loadComments"
+ jQuery(document).ready(function() {
+ jQuery.ajax("https://api.github.com/repos/norm2782/norm2782.github.com/issues//comments", {
+ dataType : "jsonp",
+ jsonpCallback : "loadComments"
+ });
});
</script>
<script src="/javascripts/modernizr-2.0.js"></script>
@@ -209,7 +218,7 @@ <h1 class="entry-title">Category: Snap</h1>
<script type="text/javascript">
(function() {
var script = document.createElement('script'); script.type = 'text/javascript'; script.async = true;
- script.src = 'http://apis.google.com/js/plusone.js';
+ script.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(script, s);
})();
</script>
View
21 index.html
@@ -23,10 +23,12 @@
<link rel="canonical" href="http://norm2782.github.com">
<link href="/favicon.png" rel="icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
+ <link href="/stylesheets/github.css" media="screen, projection" rel="stylesheet" type="text/css">
<script type="text/javascript" src="http://datejs.googlecode.com/svn/trunk/build/date-en-GB.js"></script>
<script type="text/javascript" src="http://github.github.com/github-flavored-markdown/scripts/showdown.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
- <script type="text/javascript">
+ <script src="/javascripts/highlight.pack.js"></script>
+ <script>
var converter = new Showdown.converter();
function loadComments(data) {
@@ -35,15 +37,22 @@
var cuserlink = "https://github.com/" + data.data[i].user.login;
var clink = "https://github.com/norm2782/norm2782.github.com/issues/#issuecomment-" + data.data[i].url.substring(data.data[i].url.lastIndexOf("/")+1);
var cbody = converter.makeHtml(data.data[i].body);
+ cbody = cbody.replace(/\w+<br \/>/g, "");
var cgravatarlink = data.data[i].user.avatar_url.replace("s=30&", "");
var cdate = Date.parse(data.data[i].created_at).toString("yyyy-MM-dd HH:mm:ss");
- $("#comments").append('<div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="' + cgravatarlink + '" alt="" width="20" height="20"></div><a class="commentuser" href="' + cuserlink + '">' + cuser + '</a> <a class="commentdate" href="' + clink + '">' + cdate + '</a></div><div class="commentbody">' + cbody + '</div></div>');
+ jQuery("#comments").append('<div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="' + cgravatarlink + '" alt="" width="20" height="20"></div><a class="commentuser" href="' + cuserlink + '">' + cuser + '</a> <a class="commentdate" href="' + clink + '">' + cdate + '</a></div><div class="commentbody">' + cbody + '</div></div>');
}
+
+ jQuery('#comments code').each(function(i, e) {
+ hljs.highlightBlock(e, ' ')}
+ );
}
- $.ajax("https://api.github.com/repos/norm2782/norm2782.github.com/issues//comments", {
- dataType : "jsonp",
- jsonpCallback : "loadComments"
+ jQuery(document).ready(function() {
+ jQuery.ajax("https://api.github.com/repos/norm2782/norm2782.github.com/issues//comments", {
+ dataType : "jsonp",
+ jsonpCallback : "loadComments"
+ });
});
</script>
<script src="/javascripts/modernizr-2.0.js"></script>
@@ -229,7 +238,7 @@ <h1 class="entry-title"><a href="/blog/2012/01/01/using-digestive-functors-with-
<script type="text/javascript">
(function() {
var script = document.createElement('script'); script.type = 'text/javascript'; script.async = true;
- script.src = 'http://apis.google.com/js/plusone.js';
+ script.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(script, s);
})();
</script>
View
1  javascripts/highlight.pack.js
@@ -0,0 +1 @@
+var hljs=new function(){function m(p){return p.replace(/&/gm,"&amp;").replace(/</gm,"&lt;")}function c(r,q,p){return RegExp(q,"m"+(r.cI?"i":"")+(p?"g":""))}function j(r){for(var p=0;p<r.childNodes.length;p++){var q=r.childNodes[p];if(q.nodeName=="CODE"){return q}if(!(q.nodeType==3&&q.nodeValue.match(/\s+/))){break}}}function g(t,s){var r="";for(var q=0;q<t.childNodes.length;q++){if(t.childNodes[q].nodeType==3){var p=t.childNodes[q].nodeValue;if(s){p=p.replace(/\n/g,"")}r+=p}else{if(t.childNodes[q].nodeName=="BR"){r+="\n"}else{r+=g(t.childNodes[q])}}}if(/MSIE [678]/.test(navigator.userAgent)){r=r.replace(/\r/g,"\n")}return r}function a(s){var q=s.className.split(/\s+/);q=q.concat(s.parentNode.className.split(/\s+/));for(var p=0;p<q.length;p++){var r=q[p].replace(/^language-/,"");if(d[r]||r=="no-highlight"){return r}}}function b(p){var q=[];(function(s,t){for(var r=0;r<s.childNodes.length;r++){if(s.childNodes[r].nodeType==3){t+=s.childNodes[r].nodeValue.length}else{if(s.childNodes[r].nodeName=="BR"){t+=1}else{q.push({event:"start",offset:t,node:s.childNodes[r]});t=arguments.callee(s.childNodes[r],t);q.push({event:"stop",offset:t,node:s.childNodes[r]})}}}return t})(p,0);return q}function l(y,z,x){var r=0;var w="";var t=[];function u(){if(y.length&&z.length){if(y[0].offset!=z[0].offset){return(y[0].offset<z[0].offset)?y:z}else{return z[0].event=="start"?y:z}}else{return y.length?y:z}}function s(C){var D="<"+C.nodeName.toLowerCase();for(var A=0;A<C.attributes.length;A++){var B=C.attributes[A];D+=" "+B.nodeName.toLowerCase();if(B.nodeValue!=undefined&&B.nodeValue!=false&&B.nodeValue!=null){D+='="'+m(B.nodeValue)+'"'}}return D+">"}while(y.length||z.length){var v=u().splice(0,1)[0];w+=m(x.substr(r,v.offset-r));r=v.offset;if(v.event=="start"){w+=s(v.node);t.push(v.node)}else{if(v.event=="stop"){var q=t.length;do{q--;var p=t[q];w+=("</"+p.nodeName.toLowerCase()+">")}while(p!=v.node);t.splice(q,1);while(q<t.length){w+=s(t[q]);q++}}}}w+=x.substr(r);return w}function i(){function p(u,t,v){if(u.compiled){return}if(!v){u.bR=c(t,u.b?u.b:"\\B|\\b");if(!u.e&&!u.eW){u.e="\\B|\\b"}if(u.e){u.eR=c(t,u.e)}}if(u.i){u.iR=c(t,u.i)}if(u.r==undefined){u.r=1}if(u.k){u.lR=c(t,u.l||hljs.IR,true)}for(var s in u.k){if(!u.k.hasOwnProperty(s)){continue}if(u.k[s] instanceof Object){u.kG=u.k}else{u.kG={keyword:u.k}}break}if(!u.c){u.c=[]}u.compiled=true;for(var r=0;r<u.c.length;r++){p(u.c[r],t,false)}if(u.starts){p(u.starts,t,false)}}for(var q in d){if(!d.hasOwnProperty(q)){continue}p(d[q].dM,d[q],true)}}function e(J,D){if(!i.called){i();i.called=true}function z(r,M){for(var L=0;L<M.c.length;L++){if(M.c[L].bR.test(r)){return M.c[L]}}}function w(L,r){if(C[L].e&&C[L].eR.test(r)){return 1}if(C[L].eW){var M=w(L-1,r);return M?M+1:0}return 0}function x(r,L){return L.iR&&L.iR.test(r)}function A(O,N){var M=[];for(var L=0;L<O.c.length;L++){M.push(O.c[L].b)}var r=C.length-1;do{if(C[r].e){M.push(C[r].e)}r--}while(C[r+1].eW);if(O.i){M.push(O.i)}return c(N,"("+M.join("|")+")",true)}function s(M,L){var N=C[C.length-1];if(!N.t){N.t=A(N,H)}N.t.lastIndex=L;var r=N.t.exec(M);if(r){return[M.substr(L,r.index-L),r[0],false]}else{return[M.substr(L),"",true]}}function p(O,r){var L=H.cI?r[0].toLowerCase():r[0];for(var N in O.kG){if(!O.kG.hasOwnProperty(N)){continue}var M=O.kG[N].hasOwnProperty(L);if(M){return[N,M]}}return false}function F(M,O){if(!O.k){return m(M)}var N="";var P=0;O.lR.lastIndex=0;var L=O.lR.exec(M);while(L){N+=m(M.substr(P,L.index-P));var r=p(O,L);if(r){t+=r[1];N+='<span class="'+r[0]+'">'+m(L[0])+"</span>"}else{N+=m(L[0])}P=O.lR.lastIndex;L=O.lR.exec(M)}N+=m(M.substr(P,M.length-P));return N}function K(r,M){if(M.sL&&d[M.sL]){var L=e(M.sL,r);t+=L.keyword_count;return L.value}else{return F(r,M)}}function I(M,r){var L=M.cN?'<span class="'+M.cN+'">':"";if(M.rB){q+=L;M.buffer=""}else{if(M.eB){q+=m(r)+L;M.buffer=""}else{q+=L;M.buffer=r}}C.push(M);B+=M.r}function E(O,L,Q){var R=C[C.length-1];if(Q){q+=K(R.buffer+O,R);return false}var M=z(L,R);if(M){q+=K(R.buffer+O,R);I(M,L);return M.rB}var r=w(C.length-1,L);if(r){var N=R.cN?"</span>":"";if(R.rE){q+=K(R.buffer+O,R)+N}else{if(R.eE){q+=K(R.buffer+O,R)+N+m(L)}else{q+=K(R.buffer+O+L,R)+N}}while(r>1){N=C[C.length-2].cN?"</span>":"";q+=N;r--;C.length--}var P=C[C.length-1];C.length--;C[C.length-1].buffer="";if(P.starts){I(P.starts,"")}return R.rE}if(x(L,R)){throw"Illegal"}}var H=d[J];var C=[H.dM];var B=0;var t=0;var q="";try{var v=0;H.dM.buffer="";do{var y=s(D,v);var u=E(y[0],y[1],y[2]);v+=y[0].length;if(!u){v+=y[1].length}}while(!y[2]);if(C.length>1){throw"Illegal"}return{r:B,keyword_count:t,value:q}}catch(G){if(G=="Illegal"){return{r:0,keyword_count:0,value:m(D)}}else{throw G}}}function f(t){var r={keyword_count:0,r:0,value:m(t)};var q=r;for(var p in d){if(!d.hasOwnProperty(p)){continue}var s=e(p,t);s.language=p;if(s.keyword_count+s.r>q.keyword_count+q.r){q=s}if(s.keyword_count+s.r>r.keyword_count+r.r){q=r;r=s}}if(q.language){r.second_best=q}return r}function h(r,q,p){if(q){r=r.replace(/^((<[^>]+>|\t)+)/gm,function(t,w,v,u){return w.replace(/\t/g,q)})}if(p){r=r.replace(/\n/g,"<br>")}return r}function o(u,x,q){var y=g(u,q);var s=a(u);if(s=="no-highlight"){return}if(s){var w=e(s,y)}else{var w=f(y);s=w.language}var p=b(u);if(p.length){var r=document.createElement("pre");r.innerHTML=w.value;w.value=l(p,b(r),y)}w.value=h(w.value,x,q);var t=u.className;if(!t.match("(\\s|^)(language-)?"+s+"(\\s|$)")){t=t?(t+" "+s):s}if(/MSIE [678]/.test(navigator.userAgent)&&u.tagName=="CODE"&&u.parentNode.tagName=="PRE"){var r=u.parentNode;var v=document.createElement("div");v.innerHTML="<pre><code>"+w.value+"</code></pre>";u=v.firstChild.firstChild;v.firstChild.cN=r.cN;r.parentNode.replaceChild(v.firstChild,r)}else{u.innerHTML=w.value}u.className=t;u.result={language:s,kw:w.keyword_count,re:w.r};if(w.second_best){u.second_best={language:w.second_best.language,kw:w.second_best.keyword_count,re:w.second_best.r}}}function k(){if(k.called){return}k.called=true;var r=document.getElementsByTagName("pre");for(var p=0;p<r.length;p++){var q=j(r[p]);if(q){o(q,hljs.tabReplace)}}}function n(){if(window.addEventListener){window.addEventListener("DOMContentLoaded",k,false);window.addEventListener("load",k,false)}else{if(window.attachEvent){window.attachEvent("onload",k)}else{window.onload=k}}}var d={};this.LANGUAGES=d;this.highlight=e;this.highlightAuto=f;this.fixMarkup=h;this.highlightBlock=o;this.initHighlighting=k;this.initHighlightingOnLoad=n;this.IR="[a-zA-Z][a-zA-Z0-9_]*";this.UIR="[a-zA-Z_][a-zA-Z0-9_]*";this.NR="\\b\\d+(\\.\\d+)?";this.CNR="\\b(0x[A-Za-z0-9]+|\\d+(\\.\\d+)?)";this.RSR="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|\\.|-|-=|/|/=|:|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~";this.BE={b:"\\\\.",r:0};this.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:[this.BE],r:0};this.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:[this.BE],r:0};this.CLCM={cN:"comment",b:"//",e:"$"};this.CBLCLM={cN:"comment",b:"/\\*",e:"\\*/"};this.HCM={cN:"comment",b:"#",e:"$"};this.NM={cN:"number",b:this.NR,r:0};this.CNM={cN:"number",b:this.CNR,r:0};this.inherit=function(p,s){var r={};for(var q in p){r[q]=p[q]}if(s){for(var q in s){r[q]=s[q]}}return r}}();hljs.LANGUAGES.haskell=function(){var a={cN:"label",b:"\\b[A-Z][\\w']*",r:0};var b={cN:"container",b:"\\(",e:"\\)",c:[{cN:"label",b:"\\b[A-Z][\\w\\(\\)\\.']*"},{cN:"title",b:"[_a-z][\\w']*"}]};return{dM:{k:{keyword:{let:1,"in":1,"if":1,then:1,"else":1,"case":1,of:1,where:1,"do":1,module:1,"import":1,hiding:1,qualified:1,type:1,data:1,newtype:1,deriving:1,"class":1,instance:1,"null":1,not:1,as:1}},c:[{cN:"comment",b:"--",e:"$"},{cN:"comment",b:"{-",e:"-}"},{cN:"string",b:"\\s+'",e:"'",c:[hljs.BE],r:0},hljs.QSM,{cN:"import",b:"\\bimport",e:"$",k:{"import":1,qualified:1,as:1,hiding:1},c:[b]},{cN:"module",b:"\\bmodule",e:"where",k:{module:1,where:1},c:[b]},{cN:"class",b:"\\b(class|instance|data|(new)?type)",e:"(where|$)",k:{"class":1,where:1,instance:1,data:1,type:1,newtype:1,deriving:1},c:[a]},hljs.CNM,{cN:"shebang",b:"#!\\/usr\\/bin\\/env runhaskell",e:"$"},a,{cN:"title",b:"^[_a-z][\\w']*"}]}}}();
View
21 snaplet-hdbc.html
@@ -21,10 +21,12 @@
<link rel="canonical" href="http://norm2782.github.com/snaplet-hdbc.html">
<link href="/favicon.png" rel="icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
+ <link href="/stylesheets/github.css" media="screen, projection" rel="stylesheet" type="text/css">
<script type="text/javascript" src="http://datejs.googlecode.com/svn/trunk/build/date-en-GB.js"></script>
<script type="text/javascript" src="http://github.github.com/github-flavored-markdown/scripts/showdown.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
- <script type="text/javascript">
+ <script src="/javascripts/highlight.pack.js"></script>
+ <script>
var converter = new Showdown.converter();
function loadComments(data) {
@@ -33,15 +35,22 @@
var cuserlink = "https://github.com/" + data.data[i].user.login;
var clink = "https://github.com/norm2782/norm2782.github.com/issues/1#issuecomment-" + data.data[i].url.substring(data.data[i].url.lastIndexOf("/")+1);
var cbody = converter.makeHtml(data.data[i].body);
+ cbody = cbody.replace(/\w+<br \/>/g, "");
var cgravatarlink = data.data[i].user.avatar_url.replace("s=30&", "");
var cdate = Date.parse(data.data[i].created_at).toString("yyyy-MM-dd HH:mm:ss");
- $("#comments").append('<div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="' + cgravatarlink + '" alt="" width="20" height="20"></div><a class="commentuser" href="' + cuserlink + '">' + cuser + '</a> <a class="commentdate" href="' + clink + '">' + cdate + '</a></div><div class="commentbody">' + cbody + '</div></div>');
+ jQuery("#comments").append('<div class="comment"><div class="commentheader"><div class="commentgravatar"><img src="' + cgravatarlink + '" alt="" width="20" height="20"></div><a class="commentuser" href="' + cuserlink + '">' + cuser + '</a> <a class="commentdate" href="' + clink + '">' + cdate + '</a></div><div class="commentbody">' + cbody + '</div></div>');
}
+
+ jQuery('#comments code').each(function(i, e) {
+ hljs.highlightBlock(e, ' ')}
+ );
}
- $.ajax("https://api.github.com/repos/norm2782/norm2782.github.com/issues/1/comments", {
- dataType : "jsonp",
- jsonpCallback : "loadComments"
+ jQuery(document).ready(function() {
+ jQuery.ajax("https://api.github.com/repos/norm2782/norm2782.github.com/issues/1/comments", {
+ dataType : "jsonp",
+ jsonpCallback : "loadComments"
+ });
});
</script>
<script src="/javascripts/modernizr-2.0.js"></script>
@@ -624,7 +633,7 @@ <h1 class="entry-title">HDBC Snaplet Tutorial</h1>
<script type="text/javascript">
(function() {
var script = document.createElement('script'); script.type = 'text/javascript'; script.async = true;
- script.src = 'http://apis.google.com/js/plusone.js';
+ script.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(script, s);
})();
</script>
View
129 stylesheets/github.css
@@ -0,0 +1,129 @@
+/*
+
+github.com style (c) Vasily Polovnyov <vast@whiteants.net>
+
+*/
+
+code {
+ display: block; padding: 0.5em;
+ color: #000;
+ background: #f8f8ff
+}
+
+code .comment,
+code .template_comment,
+code .diff .header,
+code .javadoc {
+ color: #998;
+ font-style: italic
+}
+
+code .keyword,
+code .css .rule .keyword,
+code .winutils,
+code .javascript .title,
+code .lisp .title,
+code .subst {
+ color: #000;
+ font-weight: bold
+}
+
+code .number,
+code .hexcolor {
+ color: #40a070
+}
+
+code .string,
+code .tag .value,
+code .phpdoc,
+code .tex .formula {
+ color: #d14
+}
+
+code .title,
+code .id {
+ color: #900;
+ font-weight: bold
+}
+
+code .javascript .title,
+code .lisp .title,
+code .subst {
+ font-weight: normal
+}
+
+code .class .title,
+code .haskell .label,
+code .tex .command {
+ color: #458;
+ font-weight: bold
+}
+
+code .tag,
+code .tag .title,
+code .rules .property,
+code .django .tag .keyword {
+ color: #000080;
+ font-weight: normal
+}
+
+code .attribute,
+code .variable,
+code .instancevar,
+code .lisp .body {
+ color: #008080
+}
+
+code .regexp {
+ color: #009926
+}
+
+code .class {
+ color: #458;
+ font-weight: bold
+}
+
+code .symbol,
+code .ruby .symbol .string,
+code .ruby .symbol .keyword,
+code .ruby .symbol .keymethods,
+code .lisp .keyword,
+code .tex .special,
+code .input_number {
+ color: #990073
+}
+
+code .builtin,
+code .built_in,
+code .lisp .title {
+ color: #0086b3
+}
+
+code .preprocessor,
+code .pi,
+code .doctype,
+code .shebang,
+code .cdata {
+ color: #999;
+ font-weight: bold
+}
+
+code .deletion {
+ background: #fdd
+}
+
+code .addition {
+ background: #dfd
+}
+
+code .diff .change {
+ background: #0086b3
+}
+
+code .chunk {
+ color: #aaa
+}
+
+code .tex .formula {
+ opacity: 0.5;
+}
Please sign in to comment.
Something went wrong with that request. Please try again.