Skip to content

Instantly share code, notes, and snippets.

@cjea
cjea / keybase.md
Last active August 20, 2023 02:47

Keybase proof I hereby claim:

  • I am cjea on github.
  • I am cjea (https://keybase.io/cjea) on keybase.
  • I have a public key ASDMwrH-GJMcSOpXpW9dNy4GJK9TutzadXPw4Fp3BySaUwo To claim this, I am signing this object:
{ "body": { "key": { "eldest_kid": "0120ccc2b1fe18931c48ea57a56f5d372e0624af53badcda7573f0e05a7707249a530a", "host": "keybase.io", "kid": "0120ccc2b1fe18931c48ea57a56f5d372e0624af53badcda7573f0e05a7707249a530a", "uid": "0fd41923922a705eee52ffb43e5f5c19", "username": "cjea" }, "merkle_root": { "ctime": 1692498793, "hash": "2fba764c7cb15b0516facdd14ee5c4172e6e629a019fd7e0d31f6182326aea0fde2127b294a32b8bdaa65db351e67da9b410bbad16705d0999779f04d41f51be", "hash_meta": "16118744c70e90753a2b7228c427c282f11a86a6514627476d4618767e2939cb", "seqno": 24829053 }, "service": { "entropy": "JMCoqVmOCNZzvUgtL93p9Jjl", "name": "github", "username": "cjea" }, "type": "web_service_binding", "version": 2 }, "client": { "name": "keybase.io go client", "version": "6.2.2" }, "ctime": 1692498847, "expire_i
"use strict";
/**
* An example implementation of cursor-based pagination.
* The "database" is a singly-linked list of foods.
* The server uses the cursor to find the last returned record, so
* it can begin the next page after the cursor.
*
* The cursor is base64 encoded JSON with "type" and "id" fields.
* The "type" allows servers to tag pagination strategies, and change

Keybase proof

I hereby claim:

  • I am cjea on github.
  • I am cjapel (https://keybase.io/cjapel) on keybase.
  • I have a public key ASBno_jlsGKe4AGr-r3t9YIfSxtN-bV09Wta4EElMgTVPwo

To claim this, I am signing this object:

var resizeAndCenterWindow = function(widthPercentage) {
var xPercentageOffset = (100-widthPercentage)/2;
return S.op("move", {
"x" : "screenOriginX+(screenSizeX/100.0*"+xPercentageOffset+")",
"y" : "screenOriginY",
"width" : "screenSizeX/100.0*"+widthPercentage,
"height" : "screenSizeY"
});
};