This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import re | |
import requests | |
import sys | |
from dotenv import load_dotenv | |
# https://etherscan.io/contract-license-types | |
# https://spdx.org/licenses/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""reducing.py | |
Author: Kirgsn, 2018 | |
Use like this: | |
>>> import reducing | |
>>> df = reducing.Reducer().reduce(df) | |
""" | |
import numpy as np | |
import pandas as pd | |
import time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def flatten(li): | |
"""Flatten lists or tuples into their individual items. If those items are | |
again lists or tuples, flatten those.""" | |
if isinstance(li, (list, tuple)): | |
for item in li: | |
yield from flatten(item) | |
else: | |
yield li |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="<?php echo WPLANG; ?>" class="<?php echo wcdn_get_template_type(); ?>"> | |
<head> | |
<meta charset="utf-8"> | |
<link href='http://fonts.googleapis.com/css?family=Poiret+One' rel='stylesheet' type='text/css'> | |
<link rel="stylesheet" href="<?php wcdn_stylesheet_url( 'style.css' ); ?>" type="text/css" media="screen,print" /> | |
</head> | |
<body> | |
<div id="container"> | |
<div id="content"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
font-family: Courier; | |
font-size: 11pt; | |
} | |
#page { | |
margin-left: auto; | |
margin-right: auto; | |
padding-top: 5%; | |
padding-bottom: 5%; | |
padding-left: 10%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="<?php echo WPLANG; ?>" class="<?php echo wcdn_get_template_type(); ?>"> | |
<head> | |
<meta charset="utf-8"> | |
<link href='http://fonts.googleapis.com/css?family=Poiret+One' rel='stylesheet' type='text/css'> | |
<link rel="stylesheet" href="<?php wcdn_stylesheet_url( 'style.css' ); ?>" type="text/css" media="screen,print" /> | |
</head> | |
<body> | |
<div id="container"> | |
<div id="content"> |