Skip to content

Instantly share code, notes, and snippets.

View leomaurodesenv's full-sized avatar

Leonardo Moraes leomaurodesenv

View GitHub Profile
@leomaurodesenv
leomaurodesenv / app.py
Created June 18, 2020 15:21
Streamlit pagination
import streamlit as st
import numpy as np
#------------------------------------------------------
#-- Side bar
#------------------------------------------------------
st.sidebar.markdown('## Pagination')
pagSelected = st.sidebar.radio('Choose a page: ', ['A','B','Crash'])
#------------------------------------------------------
@leomaurodesenv
leomaurodesenv / average-function-example.py
Created December 13, 2018 12:42
A simple example showing the average function g(x) of two functions f(x) and f'(x)
# Example in C#: https://stackoverflow.com/questions/5042712/calculate-average-function-of-several-functions
# This code is a simple example showing the average function g(x) of two functions f(x) and f'(x).
# Note, this average work with multiple functions.
import numpy as np
import matplotlib.pyplot as plt
fig = plt.figure(figsize=(5, 3))