Skip to content

Instantly share code, notes, and snippets.

View davemackintosh's full-sized avatar
❤️
peace

Dave Mackintosh davemackintosh

❤️
peace
View GitHub Profile
### Keybase proof
I hereby claim:
* I am davemackintosh on github.
* I am davemackintosh (https://keybase.io/davemackintosh) on keybase.
* I have a public key ASBvMm9V7prKvnT3WzoizYU_PmC7hKpMIAh_CT8qzBKU8go
To claim this, I am signing this object:

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@davemackintosh
davemackintosh / amazonProgress.js
Created January 18, 2018 10:31
Run in a console on the track package page of an Amazon order and you'll get a new localStorage entry each time it's run to track progress through the day.
(function getProgress() {
if (!localStorage.amazonProgress)
localStorage.amazonProgress = "[]"
const store = JSON.parse(localStorage.amazonProgress)
store.push({
time: Date.now(),
progress: JSON.parse(document.querySelector("script[type=\"a-state\"]").innerText).progressTracker.lastTransitionPercentComplete
})
"*":
"atom-beautify":
general:
_analyticsUserId: "84ce3362-ebdd-471a-8152-d2c71fda5e1d"
js:
beautify_on_save: true
indent_char: " "
indent_size: 2
unescape_strings: true
core:

Keybase proof

I hereby claim:

  • I am davemackintosh on github.
  • I am davemackintosh (https://keybase.io/davemackintosh) on keybase.
  • I have a public key whose fingerprint is 8CDF EE77 B2FA 1174 8498 45B7 1DBC 6AAF 311A 1F35

To claim this, I am signing this object:

"use strict"
const Interface = require("../interface")
const {symbols} = require("../recommended")
class Adapter_Interface extends Interface {
get [symbols.INTERFACE]() {
return {
/**
* The connect function takes one argument of
"use strict"
const {symbols} = require("./recommended")
class Interface {
constructor() {
// Somewhere to keep the errors.
const errors = new Set()
// Get the symbolised field with our
"use strict"
const Joi = require("joi")
const my_class_schema = require("./schema")
class Interface {
constructor() {
// Get the members on this class.
const class_funcs = Object.getOwnPropertyNames(Object.getPrototypeOf(this))
const class_as_object = {}
class Frontroom_Light extends Lightbulb_Interface {
}
class Lightbulb_Interface {
// switch_on should have an arity of 0
// it should turn on the thing.
switch_on() {}
// switch_off should have an arity of 0.
// it should turn off the thing.
switch_off() {}
}