Navigation Menu

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 / a.c
Last active June 11, 2023 10:47
beauty-of-c
#include __FILE__
pleaseKillMe;
@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 / 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
@mauro-balades
mauro-balades / format.sh
Last active March 6, 2023 16:23
Format your C++ projects
# note (1): remember to change the ".cpp" to the extension (and the path) you want formatted
# note (2): this works with header files too
find src/**/*.cpp | xargs clang-format -i -style="{IndentWidth: 4,TabWidth: 4}"
@mauro-balades
mauro-balades / main.c
Last active February 26, 2023 11:19
Represent a number with value "1"
#include <stdio.h>
int main() {
int num=++*(*(unsigned int(*)[1])(unsigned int[]){0}+!(*(unsigned char*)(&((unsigned int*)0)[1])))<<((!(sizeof(int)%2))?16:0);
printf("num is now %d",num);
return 0;
}
@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))