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 / index.md
Last active January 17, 2023 11:18
Why machinarium is great

Introduction

Machinarium is a point ‘n’ click adventure game that obligate players to use logic in order to proceed with the story. It takes around 3-4 hours (that's what it took me to complet it) and those 3 hours where filled with amazing discoveries. The game allows the player to discover more about the main character (commonly known as "Josef" by the community) and how he got in he's current situation.

Josef does not want to conquer the world, he just wants to reclaim his original state and have a good life with his girlfriend. For him to achieve him his goals, he must help other first and the ones he helped would return the favour. Machinarium is a good example of games that wants to transmit a message to it's player base and also about how a game can use some techniques to make it feel more inmersive and atrackt the user into wanting to discover more about the story.

Machinarium was published on 2009 along with other games such as call of duty. This made it difficult for it to expand on it's

@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 / safe_code.hpp
Last active October 12, 2022 14:35
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This is an "extension" for https://gist.github.com/aras-p/6224951
#define ; ; // not a semi colon >:)
#define union struct
#define true (2 & 3 == 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 / SCSS.md
Created April 20, 2022 15:17 — forked from jareware/SCSS.md
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso

@mauro-balades
mauro-balades / basic.cpp
Created April 14, 2022 19:44
Run BASIC code in c++
#ifndef __BASIC_CPP_H__
#define __BASIC_CPP_H__
#define DO {
#define END }
#define IF(x) if (x)
#define ELSE } else
@mauro-balades
mauro-balades / debug.hpp
Created April 2, 2022 11:10 — forked from Tagussan/debug.hpp
C++ debug header. Use -DDBUG_ option when compiling. Many thanks for https://www.creativ.xyz/dump-cpp-652/
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
using namespace std;
#define repi(itr, ds) for (auto itr = ds.begin(); itr != ds.end(); itr++)
@mauro-balades
mauro-balades / bruteforce.py
Created March 30, 2022 10:33 — forked from raphaelvallat/bruteforce.py
Password brute-force in Python
"""
Password brute-force algorithm.
List of most probable passwords and english names can be found, respectively, at:
- https://github.com/danielmiessler/SecLists/blob/master/Passwords/probable-v2-top12000.txt
- https://github.com/dominictarr/random-name/blob/master/middle-names.txt
Author: Raphael Vallat
Date: May 2018
Python 3
@mauro-balades
mauro-balades / passwordCracker.py
Created March 30, 2022 10:30 — forked from AndreUltrasi/passwordCracker.py
Password Cracker in Python
references = {}
dictionary = []
def randomized(x, y):
from random import randint
return randint(x, y)
def cracker_per_digit(x):
/* Not the nicest code we ever wrote... */
<?php
require_once 'HTTP/Request.php';
require_once 'Text/Wiki/Mediawiki.php';
class Wikipedia
{