Navigation Menu

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 / 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

@raisiqueira
raisiqueira / my-key.asc
Created April 10, 2019 23:06
My GPG pub key
-----BEGIN PGP PUBLIC KEY BLOCK-----
xsFNBFyudTUBEADiqRP7Y+bbL56LrwdRC4A8XPiXBQ2pw91aFnRHicULr+7v
8HK7w/cybkIiYgxPd95VAESlF3s/8xjam6F+J4JZeBvfZ0kfyNMyHe2s1kIe
MdEkkFllAXHwAAPjDwyevLsI7yWDr1RNL0tBEqrr9VyhFByK3EW95fdgABFC
IXUoeCKvyxNTCzLBSPro/g/IuBuRaWeOmZqrq0d0l7RQINzv9LpF/8m6Lqzc
wvI9HOr1PjuUV1mjyZcQ08YFLvKG/uMld0ZEzhspj/MmITW07AZJL6PAJhg7
J4ifjLqV0FJsqNulhUFPHoeZB9ReyMRNKaihnu/NmO7LM9R8+0i3aL3njGgF
Y+ArRZ+hsZaCS4vtIbVj89iGlkHrulTDzNBXyuyY6cGXFJEwmZHixrIRqUDb
ycRPSfEOs1L8ixqoTHAf6DpQPcHtnyRGZfL69xfCv4++EMDVSBICtyx3dKbw
@raisiqueira
raisiqueira / useHotkeys.ts
Last active December 11, 2018 02:32 — forked from pedronauck/useHotkeys.ts
usePopper and useHotkeys hooks
import { useEffect } from 'react'
import hotkeys from 'hotkeys-js'
export const useHotkeys = (key: string, cb: () => any, inputs?: any[]) => {
useEffect(() => {
hotkeys(key, cb)
return () => hotkeys.unbind(key)
}, inputs)
}
@raisiqueira
raisiqueira / fancy-tabs-demo.html
Created October 27, 2018 14:22 — forked from ebidel/fancy-tabs-demo.html
Fancy tabs web component - shadow dom v1, custom elements v1, full a11y
<script>
function execPolyfill() {
(function(){
// CustomElementsV1.min.js v1 polyfill from https://github.com/webcomponents/webcomponentsjs/tree/v1/src/CustomElements/v1.
/*
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt