Skip to content

Instantly share code, notes, and snippets.

View mazelos's full-sized avatar
🧨
Coding...

mazelos

🧨
Coding...
View GitHub Profile
@mazelos
mazelos / Linting.md
Last active October 23, 2022 14:50
Setup Eslint, Prettier and Husky for a Typescript project.

Setup Eslint, Prettier and Husky for Typescript


Eslint

  • Install eslint and plugins
yarn add -D eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin
@mazelos
mazelos / gcc-c-aliases.md
Last active January 25, 2022 13:45
Gcc and Clang aliases

Gcc and Clang aliases

Gcc debug

alias gccdeb="gcc -W -Wall -Werror -Wextra"

C test and coverage

alias gcctest="gcc -o unit_tests -lcriterion"
alias gcctestc="gcc -o unit_tests --coverage -lcriterion"
alias runtest="./unit_tests"
alias runcov="gcovr --exclude tests/"

@mazelos
mazelos / css
Created June 17, 2020 21:15
reset css file
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,