Skip to content

Instantly share code, notes, and snippets.

View MMazoni's full-sized avatar
🏀
Always trying to be better

Matheus Mazoni MMazoni

🏀
Always trying to be better
View GitHub Profile
@MMazoni
MMazoni / app.js
Created February 3, 2021 02:24
ajax vanilla js
const form = document.getElementById('form');
const inputs = {
nome: document.getElementById('nome'),
idade: document.getElementById('idade'),
descricao: document.getElementById('descricao'),
conteudo: document.getElementById('conteudo'),
};
form.addEventListener('submit', (e) => {
e.preventDefault();
@MMazoni
MMazoni / popsql.desktop
Created June 2, 2021 12:44
PopSQL Linux desktop launcher
[Desktop Entry]
Name=PopSQL
Comment=Pop SQL
GenericName=Database Manager
Exec=/home/matheus.andrade/Applications/PopSQL-1.0.48.AppImage
Icon=/home/matheus.andrade/Applications/popsql.png
Type=Application
StartupNotify=true
@MMazoni
MMazoni / PSR12-with-tabs.xml
Created January 20, 2022 19:17
A PHPCodesniffer ruleset for using PSR12 with tabs
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PSR12" xsi:noNamespaceSchemaLocation="../../../phpcs.xsd">
<description>The PSR-12 coding standard.</description>
<arg name="tab-width" value="4"/>
<!-- 2. General -->
<!-- 2.1 Basic Coding Standard -->
<!-- Code MUST follow all rules outlined in PSR-1. -->