Skip to content

Instantly share code, notes, and snippets.

View sirlancelot's full-sized avatar
🍕
Is life without pizza really living?

Matthew Pietz sirlancelot

🍕
Is life without pizza really living?
View GitHub Profile
@sirlancelot
sirlancelot / README.md
Last active April 21, 2017 21:47 — forked from anonymous/zzz.js
An experiment to create named parameters in Javascript.
var createNamedParameters = require("./named-parameters")

var fn = createNamedParameters(["greeting", "person"], function(a, b) {
	console.log(a, b)
})

fn.greeting("hello") // set a
fn.person("world")   // set b
fn() // console.log gets run
@sirlancelot
sirlancelot / date-utility_RFC-to-ISO.xsl
Created April 8, 2009 21:34 — forked from bzerangue/date-utility_RFC-to-ISO.xsl
made template match 'pubDate' so it can be called by 'apply-templates', removed redundant substring()s
<?xml version="1.0" encoding="UTF-8" ?>
<!--
XSL Utility for Symphony 2
Convert RSS feed date format to Symphony date format
Convert RFC 2822 timestamp format to ISO date format minus the time info (Symphony CMS date format)
RFC 2822 format: Sun, 7 Jan 2007 12:00:00 GMT
ISO 8601 format (minus the time info): 2007-01-07
-->
<xsl:stylesheet version="1.0"