I hereby claim:
- I am andrewbridge on github.
- I am andrewbridge (https://keybase.io/andrewbridge) on keybase.
- I have a public key whose fingerprint is 692E B865 EE87 95B1 958B BFB0 DA49 6B4A 4415 34BD
To claim this, I am signing this object:
import { join, extname } from "https://deno.land/std@0.89.0/path/mod.ts"; | |
import { ensureDir, ensureFile, walk } from "https://deno.land/std@0.89.0/fs/mod.ts"; | |
import marked from 'https://cdn.skypack.dev/marked'; | |
import { DOMParser, Element } from "https://deno.land/x/deno_dom/deno-dom-wasm.ts"; | |
const inputRelDir = './src'; | |
const outputRelDir = './dist'; | |
const titleReplacementStr = '{%PAGE_TITLE%}'; | |
const contentReplacementStr = '{%PAGE_CONTENT%}'; |
if (typeof window.URL !== 'function') { | |
window.URL = function(url) { | |
var badUrl = new TypeError("Failed to construct 'URL': Invalid URL"); | |
if (typeof url !== 'string') { | |
throw badUrl; | |
} | |
var match = url.match(/^(?<origin>(?<protocol>[^\/]+?)\/\/(?<host>(?<hostname>[^:]+)(:|)(?<port>[^\/]*?)))(?<pathname>\/[^\?\n]*)(?<search>(\?|)[^\n]*)/); | |
if (match === null) { | |
throw badUrl; | |
} |
#!/bin/sh | |
echo "Installing nix package manager" | |
curl https://nixos.org/nix/install | sh | |
echo "Setting up nix" | |
. /home/andrew/.nix-profile/etc/profile.d/nix.sh | |
echo "Installing CLI packages" | |
nix-env --install node yarn zsh zsh-completions git hub gnupg tldr |
#!/bin/sh | |
echo "Install the following manually:\n - Cinch (https://www.irradiatedsoftware.com/cinch/)" | |
# no solution to automate AppStore installs | |
read "Press any key to continue... " | |
echo '\n' | |
echo "Install xcode developer tools" | |
xcode-select --install | |
read "Press any key to continue..." |
I hereby claim:
To claim this, I am signing this object:
/** | |
* LockableValue | |
* | |
* An object that can hold a value and control the read and write access to that value. | |
* | |
* Example: | |
* var VIPValue = new LockableValue(); | |
* VIPValue.value = 'Really important, can't be changed'; | |
* var release = VIPValue.lock(); // Default behaviour is to lock write access | |
* VIPValue.value = 'Something else'; // No change, a console error is shown |
/** | |
* filter | |
* | |
* Takes a string containing uniform, plaintext data strucutures (such as vCard data) | |
* and filters the data by the given similarity in those data structures you wish to keep. | |
* | |
* @param str The string to perform the filtering on. | |
* @param similarity The similarity to filter by. | |
* @param exclude A boolean as to whether similar data structures should be included or | |
* excluded. Default is false. |
#! /bin/bash | |
DIR=`pwd` | |
MAMP_DIR="/Applications/MAMP/htdocs" | |
rm -f "$MAMP_DIR" | |
ln -f -s "$DIR" "$MAMP_DIR" |
Dealing with XML in ColdFusion is fairly straightforward. ColdFusion provides many built-in functions for doing all sorts of XML based operations. Some of those functions provide streamlined access to create, read, and search an xml document. You can also validate XML data against a DTD or schema and transform XML using XSLT.