Skip to content

Instantly share code, notes, and snippets.

@dtmilano
dtmilano / lex-bot-tester-alexa-bitcoin.py
Created May 12, 2018 21:00
Culebra Alexa Android script sample
#! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
Copyright (C) 2013-2018 Diego Torres Milano
Created on 2018-04-07 by Culebra v15.1.2
__ __ __ __
/ \ / \ / \ / \
____________________/ __\/ __\/ __\/ __\_____________________________
___________________/ /__/ /__/ /__/ /________________________________
| / \ / \ / \ / \ \___
@dtmilano
dtmilano / colors
Created November 26, 2019 01:31
Shows terminal colors
#! /bin/bash
n=32
arg=setaf
text='Hello World! This is %s %d'
_help()
{
printf 'usage: %s [--help|-H] [--16] [--256] [-t|--tiny] [--background|-b]\n' "$(basename $0)"
exit 0
@dtmilano
dtmilano / scroll.py
Created December 3, 2024 02:35
Streamlit scroll to bottom
#! /usr/bn/env streamlit run
import random
import streamlit as st
import streamlit.components.v1 as components
def content():
for i in range(50):
st.write(f"line {i}: {random.randint(0, 1000)}")