Skip to content

Instantly share code, notes, and snippets.

View adamjace's full-sized avatar

Adam Goldin adamjace

View GitHub Profile

Keybase proof

I hereby claim:

  • I am adamjace on github.
  • I am adamjace (https://keybase.io/adamjace) on keybase.
  • I have a public key ASC7w9EgJQIPQMf05YxmaWUIJARpOkVeBF6MeTUUYfyrmAo

To claim this, I am signing this object:

@adamjace
adamjace / wait.js
Last active June 9, 2017 13:24
ES7 async/await caller with a structured data response
export const wait = async (func, ...args) => {
try {
const value = await func(...args)
return {
value
}
} catch(error) {
return {
error
}
@adamjace
adamjace / timer.js
Created June 9, 2017 12:55
A really simple stopwatch style timer
'use strict'
class Timer {
constructor() {
this.instance = null
this.time = 0
}
get log() {