Skip to content

Instantly share code, notes, and snippets.

View CiceroLino's full-sized avatar
⚙️
RTFM and STFW = 42

Cícero Lino CiceroLino

⚙️
RTFM and STFW = 42
View GitHub Profile
@CiceroLino
CiceroLino / rfc-template.md
Created March 6, 2024 19:43 — forked from michaelcurry/rfc-template.md
RFC Template [Markdown]

RFC Template

Feature Name: (fill me in with a unique identity, myawesomefeature)

Type: (feature, enhancement)

Start Date: (fill me in with today's date, YYYY-MM-DD)

Author: (your names)

@CiceroLino
CiceroLino / readAndWrite.tsx
Created September 1, 2023 15:22 — forked from sethdavis512/readAndWrite.tsx
Node read and write async functions
const read = async (filePath: string) => {
return new Promise((resolve, reject) => {
fs.readFile(filePath, 'utf8', (err: any, data: string) => {
if (err) reject(err)
resolve(data)
})
})
}
const write = (filePath: string, fileName: string, fileExtension: string, content: any) => {

Custom File Generator CLI Tutorial

As a developer who works on multiple React projects daily, I like having a tool that can help me quickly and efficiently write consistent code. One of the best ways I've found is writing a custom command line tool to rapidly scaffold out my most common code patterns.

My tool of choice is Plop.js. Plop is a powerful "micro-generator framework" built to help maintain patterns as well as speed up your project build time. From the documenation:

If you boil plop down to its core, it is basically glue code between inquirer prompts and handlebar templates.

In this tutorial, we'll build out a simple React component generator for your Typescript projects. By the end, you'll have a fully functioning CLI that is customized to your file generating needs. Let's get started.

@CiceroLino
CiceroLino / .zshrc
Created February 7, 2023 17:59
My personal zsh config file
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@CiceroLino
CiceroLino / vscode-settings.json
Last active June 5, 2024 03:29
My personal config file to vscode
{
// Editor
"editor.fontSize": 13,
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"editor.inlineSuggest.enabled": true,
"editor.formatOnSave": true,
"editor.tabSize": 2,
"editor.bracketPairColorization.enabled": true,
"editor.guides.bracketPairs": "active",
@CiceroLino
CiceroLino / Git_and_Commit_basics.md
Last active August 28, 2023 02:02
Fluxo de trabalho com git

Comandos básicos do git

Configuração inicial

git config --global user.name "Nome de Usuário"

git config --global user.email "Email do usuário"