Skip to content

Instantly share code, notes, and snippets.

View mrose17's full-sized avatar

Marshall T. Rose mrose17

  • Brave Software
  • Grand Cayman, KY
View GitHub Profile
@mrose17
mrose17 / test.crt
Created July 9, 2013 04:28
[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?
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.

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:

Verifying that +_mtr is my Bitcoin username. You can send me #bitcoin here: https://onename.io/_mtr
@mrose17
mrose17 / typescript.txt
Created July 27, 2017 15:21
npm install -g homebridge homebridge-platform-ring-video-doorbell
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
> [email protected] 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
@mrose17
mrose17 / gist:d6d80263c0c3ee6200c48cec9e608469
Created October 31, 2017 17:22
revisiting the concave algorithm
i am reviewing https://github.com/brave/ledger/issues/2#issuecomment-221752002 in view of attentiveness when watching a video, e.g., on YouTube.
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