Skip to content

Instantly share code, notes, and snippets.

@iameli
iameli / app.js
Last active May 28, 2024 16:03
polyfill for running express app from a cloudflare worker
import express from "./express-poly";
import Router from "express/lib/router";
import cardcoreApp from "@cardcore/server/dist/router";
import creds from "./azure-sql.json";
import CosmosDB from "./cosmosdb";
import slackNotify from "./slack-notify";
import { v4 as uuid } from "uuid";
import { version } from "../version.json";
import pkg from "../package.json";
import stringify from "json-stable-stringify";
@Kroc
Kroc / domtemplate.php
Created January 4, 2012 14:55
DOM Template Class
<?php
//DOM Templating classes v7 © copyright (cc-by) Kroc Camen 2012
//you may do whatever you want with this code as long as you give credit
//documentation at http://camendesign.com/dom_templating
class DOMTemplate extends DOMTemplateNode {
private $DOMDocument;
private $keep_prolog = false;