Skip to content

Instantly share code, notes, and snippets.

View LeonBonetti's full-sized avatar

Leonardo Bonetti LeonBonetti

  • Belo Horizonte, MG, Brasil
View GitHub Profile
@LeonBonetti
LeonBonetti / Parameters.md
Created January 28, 2026 19:40
Custom Signal Builder Transformations

CustomSignal API Parameters Documentation

This document provides a detailed explanation of all parameters for the CustomSignal endpoint, which computes custom weather signals based on user-defined rules, thresholds, and aggregations.


Table of Contents

  1. Required Parameters
@LeonBonetti
LeonBonetti / requirements.txt
Created January 13, 2026 20:32
requirements.txt
annotated-types==0.7.0
anyio==4.11.0
appnope==0.1.4
arq==0.25.0
asttokens==3.0.0
babel==2.17.0
beautifulsoup4==4.14.2
certifi==2025.10.5
charset-normalizer==3.4.3
click==8.3.0
@LeonBonetti
LeonBonetti / rtt_metadata.json
Created December 20, 2023 04:58
RTT Metadata
{
"name": "Rich Token Test",
"symbol": "RTT",
"description": "Only a test token",
"image": "https://www.circle.com/hs-fs/hubfs/sundaes/USDC.png?width=540&height=540&name=USDC.png"
}
import * as request from 'request'
const Client = {
username: process.env.NODEUSERNAME,
password: process.env.NODEPASSWORD
}
interface ClientRequestResponse<R = any> {
"result": R,
"error": string,
import { Request, Response } from 'express'
import { Endpoint } from '../typings/global';
import { check, validationResult } from 'express-validator/check';
export const GenerateAddress: Endpoint = {
validations:[
check('userId').isLength({min:10})
],
handler: async (req: Request, res: Response) => {
import { Request, Response } from 'express';
import { ValidationChain } from 'express-validator/check'
declare interface Endpoint {
handler: (req: Request, res: Response) => any;
validations: ValidationChain[];
}
// Imports
const dotenv = require('dotenv')
dotenv.config()
import * as morgan from "morgan"
import * as express from "express"
import * as bodyParser from "body-parser"
const port: any = process.env.SERVICEPORT
${pwd}
String file contents