Skip to content

Instantly share code, notes, and snippets.

@AaronJWhite
AaronJWhite / splitStringToItems.xslt
Created October 16, 2015 16:43 — forked from netsi1964/splitStringToItems.xslt
XSLT split a string into items
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
>
<xsl:output method="xml" indent="no"/>
<xsl:variable name="groups" select="'265, 256'" />
<xsl:template match="root">
<xsl:variable name="items">
<xsl:call-template name="splitStringToItems">
@AaronJWhite
AaronJWhite / gist:9e2826a7dec45d86fedf
Last active August 29, 2015 14:25 — forked from nils-werner/gist:721650
URL encode/decode
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!--
ISO-8859-1 based URL-encoding demo
Written by Mike J. Brown, mike@skew.org.
Updated 2002-05-20.
No license; use freely, but credit me if reproducing in print.
@AaronJWhite
AaronJWhite / gist:e17e1fac0eef5f1aaba7
Created February 3, 2015 04:51
URL-In-Title IE crossrider code
// This script is licensed under the MIT license. See
// http://opensource.org/licenses/mit-license.php for more details.
// ==UserScript==
// @name URL-in-Title
// @namespace http://www.aaronjwhite.org
// @description Adds page's URL to title bar. Works great with KeePass.
// @include *
appAPI.ready(function($) {