This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml-stylesheet type="text/xsl" href="#"?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<!-- the main concept of this file is obtained from | |
http://stackoverflow.com/questions/360628/embed-xsl-into-an-xml-file --> | |
<xsl:output omit-xml-declaration="yes"/> | |
<xsl:key name="reviewers" match="reviewer" use="."/> | |
<!-- browsers have XSLT 1.0, so 'for-each-group' must be implemented |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- templates for flattening a purely hierarchical XML structure | |
into a list of <item> records --> | |
<xsl:template match="*" mode="flatten"> | |
<xsl:apply-templates mode="flatten"/> | |
</xsl:template> | |
<xsl:template match="*[not(*)]" mode="flatten"> | |
<!-- working upwards starting from leaf nodes --> | |
<item> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use HTML::Entities; | |
print "<select>\n"; | |
while (<STDIN>) { | |
chop; | |
$s = encode_entities($_); | |
print "<option value=\"$s\">$s</option>\n"; | |
} | |
print "</select>\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function escape(t) | |
{ | |
var r=''; | |
for(var i=0;i<t.length;i++){ | |
var c=t.charCodeAt(i); | |
var t1=Math.floor(c/16); | |
var t2=c%16; | |
if (t1<10) t1+=48; | |
else t1+=55; | |
if (t2<10) t2+=48; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// use (16 chars of) 'password' to encrypt 'plaintext' | |
function encrypt(plaintext, password) { | |
var v = new Array(2), k = new Array(4), s = "", i; | |
plaintext = escape(plaintext); // use escape() so only have single-byte chars to encode | |
// build key directly from 1st 16 chars of password | |
for (var i=0; i<4; i++) k[i] = Str4ToLong(password.slice(i*4,(i+1)*4)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
version="1.0"> | |
<xsl:template match="/"> | |
<rows> | |
<xsl:apply-templates select="//row"/> | |
</rows> | |
</xsl:template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:o="urn:schemas-microsoft-com:office:office" | |
version="1.0"> | |
<xsl:output indent="yes"/> | |
<xsl:template match="/"> | |
<data> | |
<xsl:apply-templates/> | |
</data> | |
</xsl:template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<liturgicaldays> | |
<locale>en-us</locale> | |
<form>eo</form> | |
<includeliturgicaldays>https://raw.github.com/vicmortelmans/LiturgyCalendar/master/liturgy.calendar.roman-rite.general.eo.ruleset.parametrized.xml</includeliturgicaldays> | |
<options>epiphany-alt,ascension-std,corpuschristi-std</options> | |
<cacheservice>http://prentenmissaal.my28msec.com/cache/cache?doc=calendar&expiration=0&url=$url</cacheservice> | |
<restservice>http://xslt.childrensmissal.appspot.com/calendar?output=xml&ruleset=$ruleset&mode=$mode&cache=$cache&date=$date&set=$set&score=$score&minrankprecedence=$minrankprecedence&coordinates=$coordinates&year=$year</restservice> | |
<cachefolder>file:///C:/temp</cachefolder> | |
<liturgicalday> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<liturgicaldays> | |
<locale>en-us</locale> | |
<form>eo</form> | |
<includeliturgicaldays> | |
https://raw.github.com/vicmortelmans/LiturgyCalendar/master/liturgy.calendar.roman-rite.general.eo.ruleset.parametrized.xml</includeliturgicaldays> | |
<options>epiphany-std,ascension-std,corpuschristi-std</options> | |
<cacheservice></cacheservice> | |
<restservice></restservice> | |
<cachefolder>file:///C:/temp</cachefolder> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"id":0,"name":"Radio Maria Nederland","mrl":"http://www.radiomaria.nl/upload/userfiles/file/webstream.pls","category":"Christian","logo":"","favorite":"fav.png","web":"http://www.radiomaria.nl","source":"Soutcast","type":"MP3"},{"name":"Radio Maria Vlaanderen","mrl":"http://stream.radiomaria.be/RadioMaria-96.m3u","category":"Christian","logo":"","favorite":"fav.png","web":"www.radiomaria.be","id":1,"type":""},{"id":2,"name":"Gregoriaans","mrl":"http://streams.greenhost.nl:8080/gregoriaans","category":"Christian","logo":"","favorite":"fav.png","web":"http://concertzender.nl/"},{"name":"Oude Muziek","mrl":"http://streams.greenhost.nl:8080/oudemuziek","category":"Christian","logo":"","favorite":"fav.png","web":"http://concertzender.nl/","id":3},{"name":"Jazz","mrl":"http://streams.greenhost.nl:8080/jazz","category":"Christian","logo":"","favorite":"fav.png","web":"http://concertzender.nl/","id":4},{"name":"Nieuwe Muziek","mrl":"http://streams.greenhost.nl:8080/nieuwemuziek","category":"Christian","logo":"","fa |
OlderNewer