Skip to content

Instantly share code, notes, and snippets.

Avatar

Stephen Bau bauhouse

View GitHub Profile
View gist:51a469b902a2311fbe9627d5a67dd724
Verifying my Blockstack ID is secured with the address 17NgWmhdwUzdEPiGXT9TwYmKzAJ9MnWD9S https://explorer.blockstack.org/address/17NgWmhdwUzdEPiGXT9TwYmKzAJ9MnWD9S
@bauhouse
bauhouse / index.html
Last active Oct 5, 2018
Roman Numerals
View index.html
<div id="roman-numeral-converter" class="form-conversion">
<div class="text-center mb-4">
<h1 id="form-title" class="h3 mb-3 font-weight-normal">Roman Numerals</h1>
<p id="instructions">Enter a number and convert it to a Roman numeral.</p>
</div>
<div class="form-group">
<label for="input-number">Number</label>
<input type="text" id="input-number" class="form-control" placeholder="Number" autofocus>
</div>
@bauhouse
bauhouse / dato.config.js
Last active Sep 14, 2020
Configuration file for DatoCMS for static site generation with Harp
View dato.config.js
// ============================================================
// dato.config.js
// ============================================================
// Configuration file for DatoCMS
// For static site generation with Harp
// ------------------------------------------------------------
// https://www.datocms.com/
// https://harpjs.com/
// ------------------------------------------------------------
/*
@bauhouse
bauhouse / dato.config.js
Created Jun 9, 2017
Set CSS Properties based on JSON data from DatoCMS
View dato.config.js
// dato.config.js
var fs = require('fs');
module.exports = (dato, root, i18n) => {
// Modify SCSS properties in public/assets/css/colors.scss
// -------------------------------------------------------
// The file to modify
var file = 'public/assets/css/colors.scss';
View master.xml
<data>
<hello>Hello, GitHub!</hello>
<message>It looks like you changed the Gist API.</message>
<references>
<reference>
<title>GitHub Developer API: Gists</title>
<description>You can read public gists and create them for anonymous users without a token; however, to read or write gists on a user's behalf the gist OAuth scope is required.</description>
<url>https://developer.github.com/v3/gists/</url>
</reference>
<reference>
@bauhouse
bauhouse / install-saxon-c.md
Last active Feb 20, 2020
Installing Saxon/C PHP Extension on an Ubuntu 14.04 x64 Server
View install-saxon-c.md

Installing Saxon/C PHP Extension on an Ubuntu 14.04 x64 Server

Saxonica recently released Saxon/C as a beta release of Saxon-HE on the C/C++ programming platform. APIs are offered currently to run XSLT 2.0 and XQuery 1.0 from C/C++ or PHP applications. Saxon/C is built from the Java product Saxon-HE 9.5.1.5 using the Excelsior JET tool [version 9.0 (MP2)]. The current release is Saxon-HE/C 0.3.1.

Follow the instructions to set up a server on DigitalOcean:

Set Up Server on Digital Ocean Droplet

View master.xml
<?xml version="1.0" encoding="utf-8" ?>
<data>
<slider-background>
<section id="11" handle="background-images">background images</section>
<entry id="18">
<images size="1.46 MB" path="" type="image/jpeg">
<filename>combines.jpg</filename>
<meta creation="2013-02-20T15:02:56-07:00" width="2300" height="1533" />
</images>
</entry>
View master.xml
<?xml version="1.0" encoding="utf-8" ?>
<data>
<explore-screenshots>
<section id="75" handle="screenshots">Screenshots</section>
<entry id="33056">
<caption mode="formatted"><p>Symphony's interface is simple and elegant.</p></caption>
<image size="79 KB" path="/assets/images/backend" type="image/png">
<filename>entry-list-1338263233.png</filename>
<meta creation="2012-05-29T13:47:13+10:00" width="802" height="470" />
</image>
View master.xml
<data>
<object id="week_35">Week 35</object>
<object id="blah_1">Blah 1</object>
<object id="week_64">Week 64</object>
</data>
View email-obfuscator.xsl
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:str="http://exslt.org/strings" extension-element-prefixes="str">
<!--
Name: E-mail Obfuscator
Version: 0.1
Author: Nick Dunn <nick@nick-dunn.co.uk>
URL: http://symphony-cms.com/downloads/xslt/file/20574/
Modified by Stephen Bau to use URL encoding
and decimal entities as well as hexadecimal entities