Skip to content

Instantly share code, notes, and snippets.

@thowar2
thowar2 / bal_redistribution.ts
Created March 30, 2021 04:30 — forked from kevinzhangTO/bal_redistribution.ts
Rough calculation of balancer reward redistribution
import { ethers } from "ethers";
import { parseUnits } from "ethers/lib/utils";
import fs from "fs";
import fetch from "node-fetch";
import path from "path";
const START_BLOCK = 11905930;
const END_BLOCK = 12111455;
const SNAPSHOT_BLOCK_DELTA = 240; // 240 blocks; Rougly 1 hr between snapshots
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:muport:QmauJfFDZFEuApHs2Xb1PG8YjFGEzra4V9ddt2a1Fbvz9a ✅
Create your profile today to start building social connection and trust online at https://3Box.io/
Verifying my Blockstack ID is secured with the address 1K77Geh3kiM9J6CKa5DgKQNxZTxusyYGmj https://explorer.blockstack.org/address/1K77Geh3kiM9J6CKa5DgKQNxZTxusyYGmj
@thowar2
thowar2 / font-smoothing.css
Created March 18, 2017 10:51
Fix font displays
html {
text-rendering: optimizeLegibility;
-webkit-font-smoothing: subpixel-antialiased;
-moz-osx-font-smoothing: grayscale;
}

Keybase proof

I hereby claim:

  • I am thowar2 on github.
  • I am tom2 (https://keybase.io/tom2) on keybase.
  • I have a public key ASB18_difOsLJtOq-CX-3kuMgY6JEj0zK5t5BO7K9gOkDwo

To claim this, I am signing this object:

<script>
(function(i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function() {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
@thowar2
thowar2 / deface_syntax.md
Last active December 3, 2015 11:56
Adding Deface Syntax Support to Sublime Text

Adding Deface Syntax to Sublime Text

  1. Install ApplySyntax package from package manager
  2. Add the following to the user settings for the package:
{
    // Deface ERB
    "name": "Rails/HTML (Rails)",
    "extensions": ["deface"],
    "rules": [
 {"file_name": ".*\\.html\\.erb\\.deface"}