Skip to content

Instantly share code, notes, and snippets.

@sirmo
sirmo / overview.py
Last active April 17, 2023 00:01
openbb overview for multiple stocks
from openbb_terminal.sdk import openbb
from dataclasses import dataclass
from typing import Union, List, Dict, Optional
from cache_to_disk import cache_to_disk, delete_disk_caches_for_function
from rich.console import Console
from rich.table import Table
CACHE_DAYS = 1
TICKERS = ['AMD', 'INTC', 'NVDA']
#include <WiFi.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include "Adafruit_LEDBackpack.h"
#ifndef _BV
#define _BV(bit) (1<<(bit))
#endif
//Adafruit_LEDBackpack matrix = Adafruit_LEDBackpack();
@sirmo
sirmo / plot.py
Created July 21, 2017 05:49
Logging with multiple Y axis
"""
Copyright (c) 2017 Muxr, http://www.eevblog.com/forum/profile/?u=105823
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
@sirmo
sirmo / fluke884x.py
Last active July 17, 2017 19:16
Interfacing to Fluke 8845/8846 over LAN.
import socket
import time
class Fluke884x(object):
def __init__(self, host=None, port=None):
self.host = host
self.port = port
self._connect()
@sirmo
sirmo / fluke.py
Created July 17, 2017 03:54
Interfacing to Fluke 8845/8846 over LAN.
import socket
import select
import string
import sys
import time
class Fluke884x(object):
def __init__(self, host=None, port=None):