Skip to content

Instantly share code, notes, and snippets.

View iPaulPro's full-sized avatar

Paul Burke iPaulPro

View GitHub Profile
@iPaulPro
iPaulPro / bitclout-pg.js
Last active April 4, 2024 20:37
Query BitClout Postgres DB with public key
const bs58check = require('bs58check')
const getPublicKeyBase64 = (publicKeyBase58Check) => {
const decoded = bs58check.decode(publicKeyBase58Check);
const payload = Uint8Array.from(decoded).slice(3);
return Buffer.from(payload).toString('base64');
}
const getPublicKeyBase58Check = (bytea) => {
const prefix = [0xcd, 0x14, 0x0];

Keybase proof

I hereby claim:

  • I am ipaulpro on github.
  • I am paulburke (https://keybase.io/paulburke) on keybase.
  • I have a public key ASBQ5efOeJFfyVzlSQ_JXlgj_oeCITzBnkcz6aPRfK36KQo

To claim this, I am signing this object:

@iPaulPro
iPaulPro / include_list_viewpager.xml
Last active March 7, 2024 11:13
CollapsingToolbarLayout with TabLayout
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2015 The Android Open Source Project
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software