Skip to content

Instantly share code, notes, and snippets.

Ashley Claymore acutmore

Block or report user

Report or block acutmore

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
acutmore / index.ts
Created Apr 30, 2019
youview sdl auto
View index.ts
/// <reference types="node" />
import { mod } from "riceburn";
import { TypescriptMod } from "riceburn/lib/interfaces";
import ts = require("typescript");
import cp = require("child_process");
import fs = require("fs");
const glob = require("glob");
import { getServiceDescription } from "../phoenix/tools/webpack/hatch/typescript-dependency-annotations/tsc-dep-annotations";
const { log } = console;
acutmore / chaos-promise.ts
Last active Apr 7, 2019
Promise Implementation where callbacks resolve in random order - To help catch race conditions
View chaos-promise.ts
const OriginalPromise = Promise;
const enum State {
const emptyFn = () => {};
const FUDGE_FACTOR_MS = 100;
acutmore / proxy.js
Created Sep 7, 2016
Basic es5 proxy
View proxy.js
function isFunction(o){
return typeof o === (typeof isFunction);
* Wraps up an object replacing methods with an interceptor
* @param obj - the obj to wrap
* @param interceptor {(obj, methodName, args) => any}
You can’t perform that action at this time.