Skip to content

Instantly share code, notes, and snippets.

View bradjones1's full-sized avatar
🤓

Brad Jones bradjones1

🤓
View GitHub Profile
@bradjones1
bradjones1 / request.ts
Created February 15, 2022 03:10
Fetch shim for Matrix JS SDK
import stringify from './querystring';
// Adjusted from http-api.ts to use fetch.
type RequestCallback = (err?: Error, response?: Response, body?: string) => void;
export default class RequestWrapper {
static fetchFn: typeof fetch;
static getRequestFn() {
@bradjones1
bradjones1 / docker-compose.yml
Created April 28, 2022 21:42
Drupal testing docker-compose.yml
services:
web:
build:
context: .
target: base
args:
with_xdebug: 1
environment:
DB_HOST: NONE
RELATIVE_DOCROOT: ''