Skip to content

Instantly share code, notes, and snippets.

View CanOfBees's full-sized avatar
😶‍🌫️

Bridger Dyson-Smith CanOfBees

😶‍🌫️
View GitHub Profile
@CanOfBees
CanOfBees / nginx.conf
Created May 31, 2024 13:29 — forked from Stanback/nginx.conf
Example Nginx configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs
#
# CORS header support
#
# One way to use this is by placing it into a file called "cors_support"
# under your Nginx configuration directory and placing the following
# statement inside your **location** block(s):
#
# include cors_support;
#
# As of Nginx 1.7.5, add_header supports an "always" parameter which
@CanOfBees
CanOfBees / example-table.xml
Created December 21, 2016 15:15 — forked from xokomola/example-table.xml
Create ODS Spreadsheet with XQuery and BaseX
<tables>
<table name="Sheet 1">
<thead>
<tr>
<td>A</td>
<td>B</td>
<td>C</td>
</tr>
</thead>
<tbody>
@CanOfBees
CanOfBees / OpenRefine-MODSXML.xsl
Created April 5, 2016 17:16 — forked from cmharlow/OpenRefine-MODSXML.xsl
OpenRefine Simple XML export to full UTK MODS/XML
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns="http://www.loc.gov/mods/v3"
xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-5.xsd"
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="2.0">
<xsl:output encoding="UTF-8" indent="yes" method="xml"/>
<xsl:strip-space elements="*"/>
<!-- Create Item Record for each Row, Name Record Filename after Identifier -->
@CanOfBees
CanOfBees / OpenRefineSimpleXMLtoMODSXML.xsl
Created April 5, 2016 15:53 — forked from cmharlow/OpenRefineSimpleXMLtoMODSXML.xsl
UTK OpenRefine Simple XML Export to MODS/XML
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns="http://www.loc.gov/mods/v3"
xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-5.xsd"
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="2.0">
<xsl:output encoding="UTF-8" indent="yes" method="xml"/>
<xsl:strip-space elements="*"/>
<!-- Create Item Record for each Row, Name Record Filename after Identifier -->