Skip to content

Instantly share code, notes, and snippets.

View pyoneerC's full-sized avatar
:shipit:
UPDATE projects SET priority = 'high' WHERE deadline = 'yesterday';

Maximo Comperatore pyoneerC

:shipit:
UPDATE projects SET priority = 'high' WHERE deadline = 'yesterday';
View GitHub Profile
@pyoneerC
pyoneerC / main.py
Created July 20, 2024 00:19
Crypto Sniper Bot Simulator
# This is a simple crypto trading bot that buys and sells coins based on their price changes and market cap.
# The bot uses the Coinranking website to get the latest prices and market caps of the coins.
# The bot starts with a balance of 10,000$ and buys coins according to some rules, and sells them based on other rules.
# Remember that this is a simple bot and should not be used for real trading.
# It's a simulation to understand how trading works.
# At the end of the program, the bot will show a bar chart of the current prices of the coins in your portfolio
# and the total profit you have made so far, as well as a line chart of the progression of your profits over time.
@pyoneerC
pyoneerC / main.py
Last active July 19, 2024 15:02
Web Scraper to get the prices of an item in MercadoLibre Argentina and plot a histogram of the prices, shows USD conversion, and shows an image of the first item found. Can search N pages (8 default)
# Script to get the prices of an item in MercadoLibre Argentina and plot a histogram of the prices
from matplotlib.offsetbox import OffsetImage, AnnotationBbox
import matplotlib.ticker as ticker
import matplotlib.pyplot as plt
from bs4 import BeautifulSoup
from PIL import Image
import numpy as np
import requests
import datetime
@pyoneerC
pyoneerC / gpr.md
Last active July 12, 2024 03:28
List of free resources to study graphics programming.
@pyoneerC
pyoneerC / UnityCleaner.cs
Created July 4, 2024 02:10
This C# script for Unity, named UnityCleaner, is designed to enhance project management within the Unity Editor. It provides a graphical user interface accessible under the "Tools" menu as "Project Cleaner". It let us delete unused files in our code base and filter them, with multi scene support.
namespace PyoneerC.UnityCleaner
{
using UnityEditor;
using UnityEngine;
using UnityEditor.SceneManagement;
using UnityEngine.SceneManagement;
using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
@pyoneerC
pyoneerC / CT1M String Generator.cpp
Created July 31, 2023 23:28
CT1M String Generator
#include <iostream>
#include <string>
#include <limits>
std::string getPalindromeSum(int num) {
if (1 == num) {
return "0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + "
+ std::to_string(num) +
" + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0";
} else if ((num >= 2) && (num <= 10)) {