This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Local Push-to-Talk Dictation on Linux (System76 / Pop!_OS) | |
| Uses [faster-whisper](https://github.com/SYSTRAN/faster-whisper) + your NVIDIA GPU for local, private speech-to-text. | |
| Hold **Right Alt** to record, release to transcribe and type into any focused window. | |
| Tested on: System76 laptop, Pop!_OS 22.04, NVIDIA RTX 4050, GNOME on X11. | |
| --- | |
| ## Prerequisites |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| txs_calldata: pl.LazyFrame = ( | |
| pl.scan_parquet("data/raw/transactions/*.parquet") | |
| .select( | |
| "block_number", | |
| "transaction_hash", | |
| "input", | |
| ) | |
| .with_columns([pl.col("input").str.len_bytes().alias("calldata_size")]) | |
| .with_columns(pl.col("calldata_size") - 1) | |
| .select("transaction_hash", "block_number", "calldata_size") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "cells": [ | |
| { | |
| "cell_type": "code", | |
| "execution_count": 1, | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "data": { | |
| "text/plain": [ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "cells": [ | |
| { | |
| "cell_type": "code", | |
| "execution_count": 1, | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "data": { | |
| "text/plain": [ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| import yfinance as yf | |
| import pandas as pd | |
| from scipy.optimize import curve_fit | |
| from fastdtw import fastdtw | |
| from scipy.spatial.distance import euclidean | |
| from scipy.signal import find_peaks, peak_widths | |
| from scipy.interpolate import interp1d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from queryportal.subgraphinterface import SubgraphInterface as sgi | |
| import polars as pl | |
| pl.Config.set_fmt_str_lengths(200) | |
| endpoints = [ | |
| 'https://api.thegraph.com/subgraphs/name/messari/uniswap-v3-ethereum', | |
| 'https://api.thegraph.com/subgraphs/name/messari/uniswap-v3-arbitrum', | |
| 'https://api.thegraph.com/subgraphs/name/messari/uniswap-v3-polygon', | |
| 'https://api.thegraph.com/subgraphs/name/messari/uniswap-v3-optimism', |
NewerOlder