Skip to content

Instantly share code, notes, and snippets.

View TylorS's full-sized avatar
🍕
OSS on my mind

Tylor Steinberger TylorS

🍕
OSS on my mind
View GitHub Profile
@TylorS
TylorS / esnextbin.md
Created May 1, 2017 16:29
esnextbin sketch
@TylorS
TylorS / esnextbin.md
Last active May 1, 2017 16:27
esnextbin sketch
@TylorS
TylorS / esnextbin.md
Created May 1, 2017 15:43
esnextbin sketch
@TylorS
TylorS / esnextbin.md
Created May 1, 2017 15:41
esnextbin sketch
@TylorS
TylorS / esnextbin.md
Last active April 28, 2017 17:01
esnextbin sketch
@TylorS
TylorS / esnextbin.md
Last active April 9, 2017 21:44
esnextbin sketch
@TylorS
TylorS / esnextbin.md
Last active April 6, 2017 10:25
esnextbin sketch
@TylorS
TylorS / mockStorage.ts
Last active April 5, 2017 13:49
Mocked Local/Session Storage implementation
export function mockLocalStorage(map?: Map<string, string>): Storage {
return new Proxy(new MockStorage(map), { get, set }) as MockedStorage
}
type MockedStorage =
MockStorage &
{ [index: number]: string } &
{ [key: string]: string }
class MockStorage {
@TylorS
TylorS / esnextbin.md
Last active March 31, 2017 23:52
esnextbin sketch
@TylorS
TylorS / esnextbin.md
Last active March 24, 2017 18:42
esnextbin sketch