Skip to content

Instantly share code, notes, and snippets.

View nompute's full-sized avatar

Michael Lai nompute

View GitHub Profile

Keybase proof

I hereby claim:

  • I am nompute on github.
  • I am myl (https://keybase.io/myl) on keybase.
  • I have a public key ASBWqMb9CZqeZi8vTMAyfjfWSKmy9gpbvIeB5CqAmIkAugo

To claim this, I am signing this object:

@nompute
nompute / jekyll_webcomic.rb
Created March 11, 2013 00:44
A quick-and-dirty webcomic generator plugin for Jekyll.
module Jekyll
class ComicPage < Page
def initialize(site, base, comic, img_path, img_file, total)
@site = site
@base = base
@dir = "/comics/#{comic}"
@comic = comic
@page_num = File.basename(img_file, File.extname(img_file))
@total = total
@name = @page_num + '.html'
@nompute
nompute / log4js-node-coloredLayout-patch.diff
Created March 22, 2011 03:54
Adding support for colouredLayout in log4js-node
diff --git a/lib/log4js.js b/lib/log4js.js
index 3785b84..d78e200 100644
--- a/lib/log4js.js
+++ b/lib/log4js.js
@@ -84,6 +84,8 @@ appenderMakers = {
layoutMakers = {
"messagePassThrough": function() { return messagePassThroughLayout; },
"basic": function() { return basicLayout; },
+ "colored": function() { return colouredLayout; },
+ "coloured": function() { return colouredLayout; },