Skip to content

Instantly share code, notes, and snippets.

View leomaurodesenv's full-sized avatar

Leonardo Mauro 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 / .zshrc
Last active November 4, 2020 11:39
Definitions for [Oh My Zsh](https://github.com/robbyrussell/oh-my-zsh)
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export PATH="/home/leomaurodesenv/anaconda3/bin:$PATH"
# Path to your oh-my-zsh installation.
export ZSH="/home/leomaurodesenv/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
@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))