Skip to content

Instantly share code, notes, and snippets.

View Klaudioz's full-sized avatar

Claudio Canales Klaudioz

View GitHub Profile
@Klaudioz
Klaudioz / p5js-mona-lisa-sfumato.html
Created May 12, 2025 15:24
A p5.js sketch simulating a "Living Mona Lisa" with an ethereal Sfumato flow effect. Features interactive particles, Perlin noise-driven movement, and a Mona Lisa-inspired color palette.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Living Mona Lisa - Sfumato Flow</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.9.0/p5.js"></script>
<style>
body { margin: 0; overflow: hidden; background-color: #0A0A08; /* Very dark base */ }
canvas { display: block; }
@Klaudioz
Klaudioz / token-overview.md
Created October 13, 2024 15:00
Brideye Token Overview

token overview Suggest Edits API Endpoint: /defi/token_overview

Description: Retrieve an overview of a specific token based on its address. This API provides comprehensive details about the token's metrics, price changes, trading activity, and more.

Request Method: GET

Data Coverage: Multi-chain

@Klaudioz
Klaudioz / ws_birdeye.md
Created October 13, 2024 12:01
Birdeye Real-Time WebSocket Documentation

Birdeye Real-Time WebSocket Documentation

Introduction

The Birdeye Real-Time WebSocket API provides a way to receive real-time updates for various cryptocurrency-related events and data, such as price changes, transaction updates, and more. This documentation outlines how to connect to the Birdeye WebSocket API, subscribe to specific events, and receive real-time data updates.

Note: Websocket is only available to users with Business Package subscription.

Code Example

@Klaudioz
Klaudioz / birdeye_ws.md
Created October 13, 2024 11:35
BirdEye WS Documentation

SUBSCRIBE_PRICE

Subscribing to Real-Time Price Updates (SUBSCRIBE_PRICE)

The "SUBSCRIBE_PRICE" event allows you to receive real-time updates about price changes for tokens or token pairs. You can subscribe to price updates for individual tokens, token pairs, or a combination of both. This subscription is useful for tracking price movements and trends on the Birdeye platform.

You can use this Websocket to get real time price updates of following objects:

  • Token Price
  • Pair (Market Price)
import pandas as pd
import numpy as np
from sqlalchemy import create_engine
from gym import spaces
from stable_baselines3 import PPO
from finrl.apps import apps
from finrl.meta.env_stock_trading.env_stocktrading import StockTradingEnv
from finrl.meta.preprocessor.preprocessors import FeatureEngineer
# Connect to PostgreSQL database
@Klaudioz
Klaudioz / api.txt
Created October 7, 2024 14:40
CoinGecko API
Check API server status
get
https://pro-api.coingecko.com/api/v3/ping
This endpoint allows you to check the API server status.
📘
Notes
You can also go to status.coingecko.com to check the API server status and further maintenance notices
#!/bin/bash
cd ~/chia-blockchain
. ./activate
plotman suspend all
chia stop -d all
deactivate
git fetch
git checkout latest
git reset --hard FETCH\_HEAD

Keybase proof

I hereby claim:

  • I am klaudioz on github.
  • I am klaud10z (https://keybase.io/klaud10z) on keybase.
  • I have a public key ASDslzMBPP8tuvIb4s4r7JPzMqEXSX2QXqlOuQ_7hRo4CAo

To claim this, I am signing this object:

2021-01-25 4h 23m
for region in `aws ec2 describe-regions --output text | cut -f3`
do
echo -e "\nListing Instances in region:'$region'..."
aws ec2 describe-instances --query "Reservations[*].Instances[*].{IP:PublicIpAddress,ID:InstanceId,Type:InstanceType,State:State.Name,Name:Tags[0].Value}" --output=table --region $region
done