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 / fileUpload.vue
Created December 22, 2017 13:06
Simple file upload with Vue and Axios
<style>
input[type="file"]{
position: absolute;
top: -500px;
}
div.file-listing{
width: 200px;
}
@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 / DUMP-MYSQL.md
Last active June 22, 2022 14:49
MYSQL DUMP container Docker

Rodar o Container do MYSQL

docker run --name dump -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root -d mysql

Importar .sql para o container:

docker exec -i <CONTAINER> mysql -uroot -pSENHA --database=dump < dump.sql

Exportar um .sql para o host:

@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 / README.MD
Last active August 6, 2021 17:40
Install Docker

Install Docker

https://github.com/eon01/DockerCheatSheet

Install

curl -fsSL https://get.docker.com | sh;

docker-compose

@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