Skip to content

Instantly share code, notes, and snippets.

View theawesomestllama's full-sized avatar

Patrick Koehn theawesomestllama

View GitHub Profile
@theawesomestllama
theawesomestllama / markdown.rb
Created June 4, 2014 07:04
Markdown -> HTML converter with support for headers and footers. Uses Redcarpet.
#!/usr/bin/env ruby
module TAL
module Markdown
require 'fileutils'
require 'optparse'
require 'pathname'
require 'redcarpet'
@theawesomestllama
theawesomestllama / property-descriptors.js
Created June 4, 2014 01:11
A simple extension of the Object class to simplify property descriptor manipulation.
"use strict";
/* Allows a nice way of manipulating property descriptors (e.g. making
* methods non-enumerable).
*
* Example:
*
* function TestClass() {};
* TestClass.prototype.testFunction = function () {console.log("Hello!")};
* TestClass.prototype.$("testFunction").setEnumerable(false);