Skip to content

Instantly share code, notes, and snippets.

@VinayakBagaria
Created September 15, 2019 22:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VinayakBagaria/c68dd6a4e7d45caa418e1f8656743c1e to your computer and use it in GitHub Desktop.
Save VinayakBagaria/c68dd6a4e7d45caa418e1f8656743c1e to your computer and use it in GitHub Desktop.
Generate an array with a range of numbers
function range(end) {
return Array.from({ length: end }, (_, index) => index);
}
range(4); // => [0, 1, 2, 3]
/*
map function that simply returns the current index.
*/
@SChristopherS
Copy link

Keybase proof

I hereby claim:

  • I am schristophers on github.
  • I am christophers99 (https://keybase.io/christophers99) on keybase.
  • I have a public key ASB9RXxw0-FC4iSzb11Qm28jo37wm2U1WvM5iBLzeumajAo

To claim this, I am signing this object:

{
  "body": {
    "key": {
      "eldest_kid": "01207d457c70d3e142e224b36f5d509b6f23a37ef09b65355af3398812f37ae99a8c0a",
      "host": "keybase.io",
      "kid": "01207d457c70d3e142e224b36f5d509b6f23a37ef09b65355af3398812f37ae99a8c0a",
      "uid": "3b7d82bb682827e9cc5414ae6a798d19",
      "username": "christophers99"
    },
    "merkle_root": {
      "ctime": 1568588212,
      "hash": "838d7a9ab71dcbfc670276b2784a679b5665eebf920f1f0c65c1d14d4cb1a96f59845928f1e964a7c59699ef3a9ee9ee266f511da7a8af84feb9407eb32a1aa6",
      "hash_meta": "33edd6281bf87827087ff1011798a699e0a95bef039d62dab5d9d5b155965054",
      "seqno": 7422214
    },
    "service": {
      "entropy": "u0Fxegi+1AsUctMzJIOCwlp7",
      "name": "github",
      "username": "schristophers"
    },
    "type": "web_service_binding",
    "version": 2
  },
  "client": {
    "name": "keybase.io go client",
    "version": "4.4.2"
  },
  "ctime": 1568588851,
  "expire_in": 504576000,
  "prev": "8b897650c5bdc7c8832ac1227a74697d2800b250630f94cb2c8cf5e20d085db1",
  "seqno": 5,
  "tag": "signature"
}

with the key ASB9RXxw0-FC4iSzb11Qm28jo37wm2U1WvM5iBLzeumajAo, yielding the signature:

hKRib2R5hqhkZXRhY2hlZMOpaGFzaF90eXBlCqNrZXnEIwEgfUV8cNPhQuIks29dUJtvI6N+8JtlNVrzOYgS83rpmowKp3BheWxvYWTESpcCBcQgi4l2UMW9x8iDKsEienRpfSgAslBjD5TLLIz14g0IXbHEICu+j1srtxxjuWZmffGFgr5FOk61jVlrRetTAETCcwanAgHCo3NpZ8RAkKBRhvpEI+dQRApNSnXosFejg6wZyP0RnACge25pDszXXabQoja7fLeBY7MUDDhRmxDPzldxmtVLZYhC9DWABahzaWdfdHlwZSCkaGFzaIKkdHlwZQildmFsdWXEICHF1XUYUztJI8F1plaCoN/yL75MJvhy4ga13Aa2LX3bo3RhZ80CAqd2ZXJzaW9uAQ==

And finally, I am proving ownership of the github account by posting this as a gist.

My publicly-auditable identity:

https://keybase.io/christophers99

From the command line:

Consider the keybase command line program.

# look me up
keybase id christophers99

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment