Skip to content

Instantly share code, notes, and snippets.

View michaelcaxias's full-sized avatar

Michael Caxias michaelcaxias

View GitHub Profile
@michaelcaxias
michaelcaxias / compose-mysql.yml
Last active October 19, 2022 19:50
Docker Compose for MySQL
version: '3.9'
services:
db:
image: mysql:latest
container_name: mysql
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=123456
restart: 'always'
@michaelcaxias
michaelcaxias / .gitconfig
Last active August 19, 2022 15:28
Git Config
[user]
name = Michael Caxias
email = michaelcaxias.dev@gmail.com
[core]
editor = code --wait
[alias]
c = !git add --all && git commit -m
s = !git status -s
l = !git log --pretty=format:'%C(blue)%h%C(red)%d %C(white)%s - %C(cyan)%cn, %C(green)%cr'
*,
:before,
:after {
box-sizing: border-box;
}
:before,
:after {
display: none;
content: '';
@michaelcaxias
michaelcaxias / settings.json
Last active May 27, 2022 12:23
settings vscode
{
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"git.enableSmartCommit": true,
"editor.tabSize": 2,
"javascript.updateImportsOnFileMove.enabled": "always",
"explorer.confirmDragAndDrop": false,
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"editor.inlineSuggest.enabled": true,
const sortGroups = (summers: string[]) => {
let currentIndex = summers.length, temporaryValue: string, randomIndex: number;
while (currentIndex) {
randomIndex = Math.floor(Math.random() * currentIndex);
currentIndex -= 1;
temporaryValue = summers[currentIndex];
summers[currentIndex] = summers[randomIndex];
summers[randomIndex] = temporaryValue;
}
return {