Skip to content

Instantly share code, notes, and snippets.

Avatar

Marshall T. Rose mrose17

View GitHub Profile
View gist:13b385c8f9f076d38787ac79e8f0254d
fakegato-history Loading... +249ms
fakegato-history Registring Events undefined +0ms
fakegato-history Accessory undefined +1ms
fakegato-history read data from undefined : {"firstEntry":0,"lastEntry":18,"usedMemory":18,"refTime":561334057,"initialTime":1539641257,"history":["noValue",{"time":1539641257,"setRefTime":1},{"time":1539641257,"temp":186.51136,"humidity":37.82954666666667,"ppm":1250},{"time":1539643662,"temp":268.47232,"humidity":10.50922666666666,"ppm":750},{"time":1539649611,"temp":31.88736,"humidity":89.37088,"ppm":1750},{"time":1539653457,"temp":205.7596342857143,"humidity":31.413455238095235,"ppm":1000},{"time":1539655521,"temp":258.9608228571429,"humidity":13.679725714285706,"ppm":750},{"time":1539660658,"temp":263.3728,"humidity":12.209066666666669,"ppm":750},{"time":1539664258,"temp":291.26656,"humidity":2.911146666666653,"ppm":500},{"time":1539667858,"temp":280.30976,"humidity":6.563413333333335,"ppm":500},{"time":1539671458,"temp":286.49472,"humidity":4.50176000000001,"ppm":500},{"t
@mrose17
mrose17 / gist:d6d80263c0c3ee6200c48cec9e608469
Created Oct 31, 2017
revisiting the concave algorithm
View gist:d6d80263c0c3ee6200c48cec9e608469
i am reviewing https://github.com/brave/ledger/issues/2#issuecomment-221752002 in view of attentiveness when watching a video, e.g., on YouTube.
@mrose17
mrose17 / typescript.txt
Created Jul 27, 2017
npm install -g homebridge homebridge-platform-ring-video-doorbell
View typescript.txt
Script started on Thu Jul 27 08:15:41 2017
% uname -a
Darwin tobit.local 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64
% npm install -g homebridge homebridge-platform-ring-video-doorbell
> arp-a@0.5.1 install /Users/mrose/.nvm/versions/node/v7.10.1/lib/node_modules/homebridge-platform-ring-video-doorbell/node_modules/arp-a
> node-gyp rebuild
;40mgyp ;43mWARN NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
View gist:6c4b54b005c9fa628f2e
Verifying that +_mtr is my Bitcoin username. You can send me #bitcoin here: https://onename.io/_mtr
View keybase.md

Keybase proof

I hereby claim:

  • I am mrose17 on github.
  • I am mrose17 (https://keybase.io/mrose17) on keybase.
  • I have a public key whose fingerprint is 18D0 A298 668B 8944 F7F5 4BA7 BC66 FB0B 4B84 01B1

To claim this, I am signing this object:

@mrose17
mrose17 / test.crt
Created Jul 9, 2013
[node.js] does https.createServer(...).on('connect', function(request, socket, head) { ... })... result in a #fail because the socket passed to the connect handler is doing ciphertext not plaintext?
View test.crt
this gist has three files. get the first, test.js and run it with node. when you see:
now point your browser at http://127.0.0.1:8001
do that and open up the error console, you will see:
ws.open
ws.onmessage
hello world.