This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { cva, VariantProps } from 'class-variance-authority'; | |
| import { mergeClasses } from '../util'; | |
| const typographyVariants = cva('text-black', { | |
| variants: { | |
| variant: { | |
| h1: 'text-4xl font-semibold text-gray-900', | |
| h2: 'text-lg font-semibold text-gray-900', | |
| h3: 'text-2xl font-semibold text-gray-900', | |
| subtitle: 'text-lg', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { | |
| useState, | |
| createContext, | |
| useContext, | |
| useCallback, | |
| useMemo, | |
| useEffect, | |
| } from 'react'; | |
| import { useMediaQuery, useLocalStorage } from 'usehooks-ts'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # PowerShell script to add Windows Defender exclusions for WSL2 and JetBrains IDE performance issues | |
| # | |
| # For context please read this thread: | |
| # https://github.com/microsoft/WSL/issues/8995 | |
| # | |
| # How to use? | |
| # - Save the Script: Open a text editor like Notepad and paste the PowerShell script into it. | |
| # - Save the file with a .ps1 extension, for example, Add_WindowsDefender_Exclusions.ps1. | |
| # - Run PowerShell as Administrator: Search for "PowerShell" in the Start menu, right-click on it, and choose "Run as administrator". | |
| # - Navigate to the Script's Location: Use the cd command to navigate to the directory where you saved the .ps1 file. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :root { | |
| --system-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, | |
| Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Open Sans, Fira Sans, | |
| Droid Sans, Helvetica Neue, sans-serif; | |
| } | |
| body { | |
| font-family: var(--system-font-reduced); | |
| font-size: 16px; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://github.com/zdharma/fast-syntax-highlighting | |
| https://github.com/zsh-users/zsh-autosuggestions | |
| https://github.com/zsh-users/zsh-completions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // npm i playwright | |
| // npx playwright install --with-deps chromium | |
| // node app.js | |
| const { chromium } = require('playwright'); | |
| (async () => { | |
| try { | |
| const browser = await chromium.launch(); | |
| // Create a new page |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Option Explicit | |
| Sub addSlideCountLabel() | |
| Dim lngIndx As Long | |
| Dim osld As Slide | |
| Dim slideCountLabel As Shape | |
| On Error Resume Next | |
| For Each osld In ActivePresentation.Slides | |
| osld.Shapes("Marker1").Delete |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Option Explicit | |
| Sub progBar() | |
| Dim lngTotal As Long | |
| Dim lngIndx As Long | |
| Dim osld As Slide | |
| Dim oshp1 As Shape | |
| Dim oshp2 As Shape | |
| Dim otB As Shape | |
| Dim slideCountLabel As Shape |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Remover credenciais do git do windows (deslogar do git) | |
| # Rodar no Cmd ou Powershell (nao funciona no git bash) | |
| # Deve retornar qual usuario está logado no git atualmente | |
| cmdkey /list:LegacyGeneric:target=git:https://github.com | |
| # Deleta as credenciais (faz logout) | |
| cmdkey /delete:LegacyGeneric:target=git:https://github.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| code --install-extension adpyke.codesnap | |
| code --install-extension albert.TabOut | |
| code --install-extension christian-kohler.npm-intellisense | |
| code --install-extension DavidAnson.vscode-markdownlint | |
| code --install-extension dbaeumer.vscode-eslint | |
| code --install-extension donjayamanne.githistory | |
| code --install-extension dotenv.dotenv-vscode | |
| code --install-extension dracula-theme.theme-dracula | |
| code --install-extension EditorConfig.EditorConfig | |
| code --install-extension esbenp.prettier-vscode |
NewerOlder