I hereby claim:
- I am edwinm on github.
- I am edwinm (https://keybase.io/edwinm) on keybase.
- I have a public key ASBPgn6mwoc7z_qfYhbiO132xGcNqB9i6YMvppwtFu36fgo
To claim this, I am signing this object:
/** | |
* Very small Ajax function. | |
* | |
* Bugs: doesn't support POST, only GET. | |
* | |
* @param {String} url | |
* @param {Function} fn | |
*/ | |
function fetchXML(url, fn){ | |
var xmlHttp = null; |
// webcam.c | |
// Author E. Martin | |
// July 27th 1997 | |
#include <stdio.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include <time.h> | |
#include <sys/stat.h> | |
#include <sys/time.h> |
<html> | |
<head> | |
<title>Power on</title> | |
</head> | |
<body> | |
<h3>Power on</h3> | |
<p>Powering on machine <?php echo $mac ?></p> |
#!/bin/bash | |
if [ ! $# == 1 ]; then | |
echo "Usage: $0 <path to mts-files>" | |
exit | |
fi | |
cd "$1" | |
for FILE in `ls "$1"` |
Verifying that +edwinm is my blockchain ID. https://onename.com/edwinm |
I hereby claim:
To claim this, I am signing this object:
prettyXml(xml: string) { | |
try { | |
const domParser = new DOMParser(); | |
const xmlDom = domParser.parseFromString(xml, 'application/xml'); | |
const xsltDom = domParser.parseFromString( | |
`<xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform> | |
<xsl:strip-space elements="*"/> | |
<xsl:template match="para[content-style][not(text())]"> | |
<xsl:value-of select="normalize-space(.)"/> | |
</xsl:template> |
// by Simon Sturmer | |
// TypeScript Wizardry: Recursive Template Literals | |
// https://www.youtube.com/watch?v=B7ygRIQcQPE | |
// Creative Commons-licence | |
const locales = { | |
en_us: { | |
hello:'Hi {user}', | |
greetings: { | |
morning:'Good morning {user}', |
// by Simon Sturmer | |
// TypeScript: Building a better EventEmitter | |
// https://www.youtube.com/watch?v=Pl7pDjWd830 | |
// Creative Commons-licence | |
type Listener<T extends Array<any>> = (...args: T) => void; | |
export class Eventemitter<EventMap extends Record<string, Array<any>>> { | |
private eventListeners: { | |
[K in keyof EventMap]?: Set<Listener<EventMap[K]>>; |