Skip to content

Instantly share code, notes, and snippets.

View kowito's full-sized avatar

Kowit C. kowito

View GitHub Profile
#!/bin/bash
# Get the project name from the first command line argument
PROJECT_NAME=$1
# Check if the project name was provided
if [ -z "$PROJECT_NAME" ]; then
echo "Error: No project name provided."
echo "Usage: $0 <project_name>"
exit 1
{"blockNumber":10517031,"timestamp":"2021-08-31T20:41:35.766Z","twindexPrice":{"dopPrice":0.08728862979938022,"twinPrice":0.08779877897223844,"dopxPrice":0.08793617329630371},"pancakePrice":{"dopPrice":0.08704614043270366,"btcPrice":47175.139551254826},"twindexStakingData":[{"lpData":{"name":"TWIN Single Pool","lpAddress":"0x3806aae953a3a873D02595f76C7698a57d4C7A57","tokenNumberInPool":1,"farmPoolId":9,"stakingType":"ACTIVE","lpType":"TWINDEX_SINGLE"},"poolWeight":10.526315789473685,"apr":0,"daily":0,"tvl":401075.88748183916},{"lpData":{"name":"TWIN-DOLLY Pool","lpAddress":"0x593747Cd0023669c7A67511406266559B166Ca5d","tokenNumberInPool":2,"farmPoolId":10,"stakingType":"ACTIVE","lpType":"TWINDEX"},"poolWeight":15.789473684210526,"apr":0,"daily":0,"tvl":63399.43623392734},{"lpData":{"name":"TWIN-WBNB Pool","lpAddress":"0xC3BFdd2cd502e719132Bf7aA5954C74e9C7209F5","tokenNumberInPool":2,"farmPoolId":11,"stakingType":"ACTIVE","lpType":"TWINDEX_BNB"},"poolWeight":15.789473684210526,"apr":0,"daily":0,"tvl":91316.0718
[user]
name = Kowito
email = hi@kowito.com
[core]
excludesfile = ~/.gitignore
autocrlf = input
editor = vim
excludesfile = /Users/kowito/.gitignore_global
[color]
ui = auto

Keybase proof

I hereby claim:

  • I am kowito on github.
  • I am kowito (https://keybase.io/kowito) on keybase.
  • I have a public key whose fingerprint is AF18 C420 8C67 DBD1 AC1C 9613 433E 5FF4 83AD DEB8

To claim this, I am signing this object:

@kowito
kowito / fizzbuzz.py
Last active January 1, 2016 04:58
fizz buzz test no if+unittest test by ./fizzbuzz.py test run ./fizzbuzz.py
#!/usr/bin/env python
import unittest
import sys
class FizzBuzz:
def fizz(self, i):
try:
0 / (i % 3)
return self.buzz(i)
except ZeroDivisionError: