Skip to content

Instantly share code, notes, and snippets.

View mauro-balades's full-sized avatar
😪
Focusing

mauro 🤙 mauro-balades

😪
Focusing
View GitHub Profile
@mauro-balades
mauro-balades / plfm.md
Created February 18, 2024 21:17
The perfect programming language (for me)

Welcome

The quest for the perfect programming language is a personal and subjective journey, as the most suitable language can vary widely depending on an individual's needs, preferences, and the context of the task at hand. No single programming language can claim to be universally perfect, but there is often one that aligns closely with a specific developer's requirements, providing the right balance of power, expressiveness, and ease of use.

Here's what I would love to have in a perfect programming language:

  • Static typing
  • Compiled and low-level (I need speed)
  • High-level constructs (combined with point #2)
  • Exception-based Error Handling
@mauro-balades
mauro-balades / nice.py
Last active September 5, 2023 13:25
Nice python turtle shape
import turtle as sneaky_turtle
sneaky_turtle.speed(0)
i = 120/2
while True:
for i in range(6):
sneaky_turtle.forward(100)
sneaky_turtle.left(360/6)
sneaky_turtle.left(i/2)
i *= 2
@mauro-balades
mauro-balades / README.md
Last active June 12, 2023 09:36
mailto URL standard

First of all, what is this?

Mailto is a special type of HTML link. When the client opens this links, it will open the default mail client you have in your computer. The web browser requires a default e-mail client software installed on his computer in order to activate the e-mail client.

How to create a mailto link?

The mailto link must have the mailto: prefix. This prefix will tell the browser that the client is trying to send and email and there for, open the email client. Followed by the prefix, it is required to input the email of the recivient.

@mauro-balades
mauro-balades / a.c
Last active June 11, 2023 10:47
beauty-of-c
#include __FILE__
pleaseKillMe;
@mauro-balades
mauro-balades / __main__.py
Last active May 14, 2023 07:05
Create infinite accounts with logbug
from selenium import webdriver
import undetected_chromedriver as uc
import random
import string
import csv
from time import sleep
def id_generator(size=50, chars=string.ascii_uppercase + string.digits):
return ''.join(random.choice(chars) for _ in range(size))
@mauro-balades
mauro-balades / osx-ld.md
Created May 9, 2023 04:50 — forked from loderunner/osx-ld.md
potential blog posts

ld – Wading through Mac OS X linker hell

Intro

Friend: I tried looking at static linking in Mac OS X and it seems nearly impossible. Take a look at this http://stackoverflow.com/a/3801032

Me: I have no idea what that -static flag does, but I'm pretty sure that's not how you link to a library. Let me RTFM a bit.

Minutes later...

@mauro-balades
mauro-balades / readme.md
Created May 3, 2023 17:51 — forked from siumhossain/readme.md
How to install selenium chrome web driver in linux

Download chrome webdriver from

Click here for download

Make sure driver version match your chrome browser version

Open folder where chrome driver downloaded and open terminal & run one by one

sudo chmod +x chromedriver
@mauro-balades
mauro-balades / main.py
Last active May 3, 2023 17:42
calculator
class Calculator:
source = ""
def __init__(self, *argv, **kwargs) -> None:
self.source = kwargs.get("source", None)
if self.source is None:
raise Exception("[BUG]: source not found?")
["✌","😂","😝","😁","😱","👉","🙌","🍻","🔥","🌈","☀","🎈","🌹","💄","🎀","⚽","🎾","🏁","😡","👿","🐻","🐶","🐬","🐟","🍀","👀","🚗","🍎","💝","💙","👌","❤","😍","😉","😓","😳","💪","💩","🍸","🔑","💖","🌟","🎉","🌺","🎶","👠","🏈","⚾","🏆","👽","💀","🐵","🐮","🐩","🐎","💣","👃","👂","🍓","💘","💜","👊","💋","😘","😜","😵","🙏","👋","🚽","💃","💎","🚀","🌙","🎁","⛄","🌊","⛵","🏀","🎱","💰","👶","👸","🐰","🐷","🐍","🐫","🔫","👄","🚲","🍉","💛","💚"]
@mauro-balades
mauro-balades / what.c
Created April 9, 2023 19:22
Procrastination > Work
#include <stdio.h>
#define x(int, y) main(int a, char** y) {
#define y putchar
#define z return
#define a 0x5F
#define b 0x04
#define c 0x6F
#define d 0x77
#define e 0x62