Skip to content

Instantly share code, notes, and snippets.

"""This application experiments with the (grid) layout and some styling
Can we make a compact drequesthboard across several columns and with a dark theme?"""
from typing import List, Optional
import uuid
import snowflake.connector
import markdown
import pandas as pd
import streamlit as st
from plotly import express as px
//CREATE SCRIPT
create or replace TABLE BLOCKCHAIN_DEMO.PUBLIC.TXN_RECEIPT_DATA (
SCR VARIANT
);
//TASK TO TRANSFORM DATA
CREATE OR REPLACE TASK TRANSFORM_DATA
USER_TASK_MANAGED_INITIAL_WAREHOUSE_SIZE='SMALL'
WHEN
import string
from web3 import Web3
import numpy as np
import json
from eth_abi import abi
import pandas as pd
from snowflake.connector.pandas_tools import pd_writer
from sqlalchemy import create_engine
from hexbytes import HexBytes
apiVersion: run.tanzu.vmware.com/v1alpha1 #tkg api endpoint
kind: TanzuKubernetesCluster #required parameter
metadata:
name: {{CLUSTER_NAME}} #cluster name, user defined
namespace: {{GUEST_CLUSTER_NS}} #supervisor namespace
spec:
distribution:
version: v1.16.8 #resolved kubernetes version
topology:
controlPlane:
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: mongodb-standalone
spec:
serviceName: database
replicas: 1
selector:
matchLabels:
app: database
@leeadh
leeadh / ubuntudocker.sh
Last active April 19, 2019 12:00 — forked from fredhsu/ubuntudocker.sh
Shell script to install Docker CE on ubuntu and post-install user configuration
#!/bin/bash
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \