Skip to content

Instantly share code, notes, and snippets.

@johnyb
johnyb / keybase.md
Last active August 29, 2015 14:16
keybase.md

Keybase proof

I hereby claim:

  • I am johnyb on github.
  • I am johnyb (https://keybase.io/johnyb) on keybase.
  • I have a public key whose fingerprint is 0237 DD52 FF4D C8A6 776D F879 9A3D 26B4 AFB8 59EA

To claim this, I am signing this object:

@johnyb
johnyb / signing_key
Created February 2, 2014 23:00
openpgp sign/verification test
I am using this key for signing:
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: Mailvelope v0.7.0
Comment: Email security by Mailvelope - http://www.mailvelope.com
xsFNBFLNSVEBD/95qtk75iwYnZxh7JoG8QP89UL9M7DVV3AtQKBJdf7M9iZA
jvHczyboOlfVdQe/R/50A9WTFW0zVZQpoc61VaNURJa+DEH1CKx4cDT6nOXV
MweYYdBX7ODdps9fvGrum84MmsKbdoEc8iBh/qooYM0Ztk8giwvalHDwq16Q
AVpaaL8CXffgHKbGpRPK8Xu2qppqoc6W50loLoqIlIJFzrvQEJ17h9MjxEMr
@johnyb
johnyb / context.js
Created August 30, 2013 09:39
tricky performance fix
// reloop to get proper height
return $.when.apply($, defs).pipe(function () {
var i, obj, node, top,
//isVisible is only needed in for loop; visible selectors are slow, avoid them if possible
isVisible = $i > 0 ? container.is(':visible') : undefined,
height;
for (i = 0; i < $i; i++) {
obj = labels.list[i];
obj.top = cumulatedLabelHeight + obj.pos * itemHeight;
node = labels.nodes.eq(i);