0.00922203063965
2611-04-18
0.0102469921112
2385-05-21
# -*- coding: utf-8 -*- | |
import json | |
import datetime as dt | |
import requests as r | |
MINT_TOPIC = '0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde' | |
BURN_TOPIC = '0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c' |
# Install Rust | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh | |
source $HOME/.cargo/env | |
echo source $HOME/.cargo/env >> ~/.bashrc | |
# Install Reth Dependencies | |
sudo apt-get install libclang-dev pkg-config build-essential | |
git clone https://github.com/paradigmxyz/reth | |
cd reth |
apt-get update
adduser jnmclarty
usermod -aG sudo jnmclarty
su - jnmclarty
sudo apt-get -y upgrade
sudo apt-get install make build-essential libssl-dev libffi-dev python-dev python-virtualenv zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils
The text below has been transcribed from a video produced by REX MLS. For certain bullets, I broke out lines where there were two ideas on one line.
import json | |
# Assuming you've instantiated a Flask app... | |
from pyenvdiff import Environment | |
@app.route('/pyenv') | |
def pyenv(): | |
info = Environment().info() | |
resp = json.dumps(info) |
cd ~ | |
wget http://repo.continuum.io/archive/Anaconda3-4.2.0=Linux-x86-64.sh | |
sudo yum install git | |
sudo yum groupinstall -y development | |
sudo yum install -y zlib-dev openssl-devel sqlite-devel bzip2-devel | |
sudo yum install python-devel | |
bash Anaconda3-4.2.0-Linux-x86_64.sh | |
source .bashrc | |
conda create -n py27pymqi python=2.7 | |
conda create -n py35pyqmi python=3.5 |
from functools import partial | |
import os | |
rel_path = partial(os.path.join, os.path.dirname(__file__)) | |
f = rel_path("../config/foo.ini") | |
print_stderr = partial(print, file=sys.stderr) |
# -*- coding: utf-8 -*- | |
""" | |
Created on Sun Sep 06 07:29:38 2015 | |
@author: Jeffrey | |
""" | |
""" | |
Python code clone detector, | |
using Abstract Syntax Trees. |
[distutils] | |
index-servers = | |
pypi | |
pypitest | |
[pypi] | |
repository: https://pypi.python.org/pypi | |
username: jmclarty | |
password: |