Skip to content

Instantly share code, notes, and snippets.

View scritchley's full-sized avatar

Simon Critchley scritchley

View GitHub Profile
@scritchley
scritchley / FileUpload.tsx
Created June 16, 2021 10:49
Example FileUpload component
import React, { useState } from 'react';
export interface FileUploadProps {
children: any;
placeholder: any
onDrop: (data: any) => any;
onError?: (err) => any
supportedMimeTypes: string[];
}
@scritchley
scritchley / number-transition.pipe.ts
Created May 9, 2017 16:04
Simple number transition pipe
import { Pipe, PipeTransform, OnDestroy } from '@angular/core';
import { Observable, Subscription, Scheduler } from 'rxjs';
@Pipe({
name: 'numberTransition',
pure: false
})
export class NumberTransitionPipe implements PipeTransform, OnDestroy {
/**
@scritchley
scritchley / noise.go
Created January 30, 2017 15:29
hash noise
package main
import (
"bufio"
"image"
"image/color"
"image/png"
"os"
"strconv"
)