Skip to content

Instantly share code, notes, and snippets.

View danielsobrado's full-sized avatar

Daniel Sobrado danielsobrado

View GitHub Profile
@livecodelife
livecodelife / roo_workflow.md
Last active April 23, 2026 12:59
Roo Code Setup and Workflow for the best $0 development

Roo Code Workflow: An Advanced LLM-Powered Development Setup

This gist outlines a highly effective and cost-optimized workflow for software development using Roo Code, leveraging a multi-model approach. This setup has been successfully used to build working applications, such as Baccarat game simulations with betting strategy analysis, and my personal portfolio site.


Core Components & Model Allocation

The power of this setup lies in strategically assigning different Large Language Models (LLMs) to specialized "modes" within Roo Code, optimizing for performance, cost, and specific task requirements.

@rain-1
rain-1 / LLM.md
Last active March 27, 2026 08:10
LLM Introduction: Learn Language Models

Purpose

Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.

Prelude

Neural network links before starting with transformers.

Rust Cheat Sheet

Variables & Mutability

Variables are immutable by default. This makes Rust safer and makes concurrency easier.
Immutable means once a value is bound to that variable, it cannot be changed.
For example:

fn main() {
 let x = 5;
@cescoffier
cescoffier / Retry.java
Last active October 13, 2025 10:30
Various examples of retries with Mutiny
//usr/bin/env jbang "$0" "$@" ; exit $?
//DEPS io.smallrye.reactive:smallrye-mutiny-vertx-web-client:1.1.0
//DEPS io.smallrye.reactive:mutiny:0.7.0
//DEPS org.slf4j:slf4j-nop:1.7.30
package io.vertx.mutiny.retry;
import io.smallrye.mutiny.Uni;
import io.vertx.mutiny.core.Vertx;
@gmolveau
gmolveau / golang_offline.md
Last active July 7, 2025 02:48
golang mod offline dependencies download

golang offline module dependencies download

Using go mod vendor

0 - With an existing module

  • copy go.mod and go.sum files from the offline PC to the internet PC

0bis - New module

//usr/bin/env jbang "$0" "$@" ; exit $?
//DEPS io.smallrye.reactive:smallrye-mutiny-vertx-web-client:1.1.0
//DEPS io.smallrye.reactive:mutiny:0.7.0
//DEPS org.slf4j:slf4j-nop:1.7.30
package io.vertx.mutiny.pagination;
import io.smallrye.mutiny.Multi;
import io.smallrye.mutiny.Uni;
@paduel
paduel / yahoo_finance_stream.py
Last active May 21, 2020 10:34
Code to get quote streaming from Yahoo Finance
from requests import get
import threading
from time import sleep
from pandas import Series
from datetime import datetime
# Function get information in json format from Yahoo Finance
def stream(
symbol,
callback=None,
@phillipuniverse
phillipuniverse / DemoApplication.java
Last active January 10, 2023 14:57
JUnit 5 integration test with Spring Cloud Stream and embedded Kafka
package com.example.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.annotation.Input;
import org.springframework.cloud.stream.annotation.Output;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.messaging.MessageChannel;
import org.springframework.messaging.SubscribableChannel;
@anshoomehra
anshoomehra / parsing10k.ipynb
Last active November 25, 2025 00:38
How to Parse 10-K Report from EDGAR (SEC)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@paduel
paduel / pi_monitor.py
Created May 9, 2019 19:55
Un breve codigo para descargar el valor de Pi en la divisa deseada de forma continua usando callback.
from requests import get
import threading
from time import sleep
# Función que usa un llamada para tomar la información en formato json de la api pública
def get_pi(callback=None, base='EUR', wait_time=1, verbose=False):
while True:
response = get(
f'https://api.piexchange.io/v1/public/instrument/ticker/PIT{base}')
info_dict = response.json()