Instalação do Zsh + Oh My Zsh no windows sem WSL.
choco install msys2 -y
Deprecated: Use https://github.com/otonii/meu-terminal, esse carinha aqui não será mais atualizado.
Antes de atualizar o PowerShellGet, você sempre deve instalar o provedor do NuGet mais recente. Em uma sessão do PowerShell com privilégios elevados, execute os comandos a seguir.
// https://stackoverflow.com/a/47206289 | |
function init() { | |
new SmoothScroll(document, 120, 12) | |
} | |
function SmoothScroll(target, speed, smooth) { | |
if (target === document) | |
target = | |
document.scrollingElement || |
Function ExtractIcon { | |
Param ( | |
[Parameter(Mandatory=$true)] | |
[string]$folder | |
) | |
[System.Reflection.Assembly]::LoadWithPartialName('System.Drawing') | Out-Null | |
md $folder -ea 0 | Out-Null |
{ | |
"compilerOptions": { | |
/* Base Options: */ | |
"esModuleInterop": true, | |
"skipLibCheck": true, | |
"target": "ES2022", | |
"verbatimModuleSyntax": true, | |
"allowJs": true, | |
"resolveJsonModule": true, | |
"moduleDetection": "force", |
type Fn = (...args: any[]) => any; | |
type Reducer = Record<string, Fn>; | |
type Unsubscribe = () => void; | |
let seed = 0; | |
export abstract class AbstractSubscribableController<TReducer extends Reducer> { | |
protected observers: Map<number, TReducer> = new Map(); | |
subscribe(reducer: TReducer): Unsubscribe { | |
seed++; |
import { HTMLAttributes, ReactNode } from "react" | |
import { cn } from "@/lib/utils" | |
type ColumnValue = ReactNode | |
export interface Column<T> { | |
label: ReactNode | |
template?: (item: T, index: number, rows: T[]) => ColumnValue | |
cellClassName?: string |