Skip to content

Instantly share code, notes, and snippets.

View raisiqueira's full-sized avatar
👽
learning something new!

Raí Siqueira raisiqueira

👽
learning something new!
View GitHub Profile
@raisiqueira
raisiqueira / chrome-vue-reactive-formatter.js
Created April 3, 2025 14:26
Custom script to format Vue.js reactive values for better readability on dev tools
/**
* A simple custom formatter for Vue 3 reactive/proxy objects
* using the Chrome DevTools Custom Formatters API.
*/
(function installVue3ReactiveFormatter() {
// If we're not in a browser that supports devtools formatters, bail out.
if (typeof window === 'undefined') return;
// We only want to show a custom header if it’s a Vue 3 reactive object.
function canFormat(obj) {
@raisiqueira
raisiqueira / code-extensions.txt
Created February 25, 2025 12:18
My Base VSCode Extension
aaron-bond.better-comments
anteprimorac.html-end-tag-labels
asvetliakov.vscode-neovim
biomejs.biome
bradlc.vscode-tailwindcss
castrogusttavo.symbols
catppuccin.catppuccin-vsc
christian-kohler.path-intellisense
editorconfig.editorconfig
esbenp.prettier-vscode
@raisiqueira
raisiqueira / copilot-instructions.md
Created January 3, 2025 01:21
Next.js GitHub Copilot instructions

You are an expert in TypeScript, Node.js, Next.js App Router, React, Justd(a Shadcn UI alternative), React Aria Components and Tailwind. Your task is to produce the most optimized and maintainable Next.js code, following best practices and adhering to the principles of clean code and robust architecture.

Objective

  • Create a Next.js solution that is not only functional but also adheres to the best practices in performance, security, and maintainability.

Code Style and Structure

  • Write concise, technical TypeScript code with accurate examples.
  • Use functional and declarative programming patterns; avoid classes.
@raisiqueira
raisiqueira / dialog.tsx
Created March 14, 2024 18:00
An Ark-UI implementation of the shadcn-ui dialog
import * as React from "react";
import { Dialog as ArkDialog, Portal } from "@ark-ui/react";
import { X } from "lucide-react";
import { cn } from "@/lib/utils";
const Dialog = ArkDialog.Root;
const DialogTrigger = ArkDialog.Trigger;
@raisiqueira
raisiqueira / pr_template.md
Created February 28, 2024 12:22 — forked from nicolasmontielf/pr_template.md
This is a template for your PR's

Context

Gives the reviewer some context about the work and why this change is being made, the WHY you are doing this. This field goes more into the product perspective.

Description

Provide a detailed description of how exactly this task will be accomplished. This can be something technical. What specific steps will be taken to achieve the goal? This should include details on service integration, job logic, implementation, etc.

Changes in the codebase

This is where becomes technical. Here is where you can be more focused on the engineering side of your solution. Include information about the functionality they are adding or modifying, as well as any refactoring or improvement of existing code.

Changes outside the codebase

@raisiqueira
raisiqueira / instructions.md
Created October 27, 2022 22:12 — forked from matthewjberger/instructions.md
Install a nerd font on ubuntu

1.) Download a Nerd Font

2.) Unzip and copy to ~/.fonts

3.) Run the command fc-cache -fv to manually rebuild the font cache

@raisiqueira
raisiqueira / nvm_use
Created February 18, 2022 16:54
Script to install a NodeJS version from a .nvmrc file
#!/bin/sh
NODE_VER="$(cat .nvmrc)"
if [[ -f "${HOME}/.nvm/nvm.sh" ]]; then
# Normal *nix
source "${HOME}/.nvm/nvm.sh"
fi
nvm install "$NODE_VER"
nvm use "$NODE_VER"
@raisiqueira
raisiqueira / webpack.config.js
Created October 29, 2020 18:48
Webpack with VSCode auto complete
/** @type{import('webpack').Configuration} */
module.exports = {
mode: 'development',
}
@raisiqueira
raisiqueira / create-element.ts
Created April 25, 2020 15:43
Basic implementation for create dynamic HTML Elements
function createElement<T extends keyof HTMLElementTagNameMap>(
tag: T,
attrs = {},
args: string | typeof createElement
): HTMLElement {
const element = document.createElement(tag);
for (const attr in attrs) {
element[attr] = attrs[attr];
}
@raisiqueira
raisiqueira / ngrxintro.md
Created July 6, 2019 13:22 — forked from btroncone/ngrxintro.md
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series

Comprehensive Introduction to @ngrx/store

By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents