Skip to content

Instantly share code, notes, and snippets.

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

mr. m mauro-balades

😪
Focusing
View GitHub Profile
@mauro-balades
mauro-balades / README.md
Last active June 21, 2024 19:47
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.

@RubenKelevra
RubenKelevra / fast_firefox.md
Last active April 17, 2025 21:10
Make Firefox fast again
@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
@alexreardon
alexreardon / drag-and-drop-notes.md
Last active April 8, 2025 21:00
An explanation of the timing of drag and drop events

Drag and drop

This is a collection of knowledge I have built up regarding browser powered drag and drop functionality

Events

dragstart

  • timing: once as drag is starting
  • event.target: draggable Element
@mauro-balades
mauro-balades / chas.py
Created March 23, 2022 09:17
PC crash in python
from itertools import count as crash
list(crash(0))
@mauro-balades
mauro-balades / bf.c
Created January 1, 2022 11:45 — forked from lifthrasiir/bf.c
/* The world's smallest Brainfuck interpreter in C, by Kang Seonghoon
* http://j.mearie.org/post/1181041789/brainfuck-interpreter-in-2-lines-of-c */
s[99],*r=s,*d,c;main(a,b){char*v=1[d=b];for(;c=*v++%93;)for(b=c&2,b=c%7?a&&(c&17
?c&1?(*r+=b-1):(r+=b-1):syscall(4-!b,b,r,1),0):v;b&&c|a**r;v=d)main(!c,&a);d=v;}
@mauro-balades
mauro-balades / README.md
Last active January 13, 2022 20:25
Regex

Learn Regex

Programmers seem to struggle with regex. In this post, I will show you how easy regex can be and some usefull examples for regex.

@mauro-balades
mauro-balades / regExMatches.c
Created November 29, 2021 15:57 — forked from raoulduke/regExMatches.c
C regex get all matches
#include <stdio.h>
#include <string.h>
#include <regex.h>
#define TEST_REGEX "^.*\\/([a-zA-Z_.]*)\\.log : [A-Z]{3} [0-9]{2}\\/[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{6} .* : (.*)$"
#define MAX_REGEX_MATCHES 5
#define MAX_STRING_SIZE 1000
#define MAX_ERR_LENGTH 50
/**
@mauro-balades
mauro-balades / ANSI-color-codes.h
Last active April 21, 2022 01:57 — forked from RabaDabaDoba/ANSI-color-codes.h
The entire table of ANSI color codes working in C!
/*
* This is free and unencumbered software released into the public domain.
*
* For more information, please refer to <https://unlicense.org>
*/
#ifndef __ANSI_COLOR_CODES_H_
#define __ANSI_COLOR_CODES_H_
//Regular text