Skip to content

Instantly share code, notes, and snippets.

View thiago-amm's full-sized avatar

Thiago Alexandre thiago-amm

View GitHub Profile
@pctimm
pctimm / .env
Created September 25, 2023 15:46
Como usar variáveis de ambiente no VS Code (para aplicações Spring Boot)
# Localização: pctimm/projetos/meuprojeto (VS.Code Workspace)/.env
# Cuidar para não adicionar as " " (aspas) pois isso será lido junto.
# Formato: CHAVE_VARIAVEL=valor-variavel
DB_USERNAME=rootusername
DB_PASSWORD=root.senha123
DB_NAME=database
DB_URL=localhost:3306
@greyscaled
greyscaled / README.md
Last active December 10, 2025 00:19
Sequelize + Express + Migrations + Seed Starter
@thegitfather
thegitfather / vanilla-js-cheatsheet.md
Last active March 7, 2026 11:26
Vanilla JavaScript Quick Reference / Cheatsheet
@paulirish
paulirish / what-forces-layout.md
Last active March 4, 2026 05:36
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@MarkyMarkMcDonald
MarkyMarkMcDonald / create_migration.sh
Last active August 24, 2020 22:21
Create Flyway migration versioned by timestamp: ./bin/create_migration.sh "Add_Unique_Constraint_To_User_Email"
#!/bin/bash
echo "-- New Migration" > "`dirname $0`/../src/main/resources/db/migrations/V`date +%s`__$1.sql"
@ourmaninamsterdam
ourmaninamsterdam / LICENSE
Last active December 17, 2025 23:35
Arrayzing - The JavaScript array cheatsheet
The MIT License (MIT)
Copyright (c) 2015 Justin Perry
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
@yoavniran
yoavniran / ultimate-ut-cheat-sheet.md
Last active January 25, 2026 05:45
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai, Sinon, and Jest
@joyrexus
joyrexus / README.md
Last active February 23, 2026 21:20 — forked from liamcurry/gist:2597326
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})