Skip to content

Instantly share code, notes, and snippets.

View goran-peoski-work's full-sized avatar
💭
@

goran-peoski-work

💭
@
View GitHub Profile
@goran-peoski-work
goran-peoski-work / Microsoft.PowerShell_profile.ps1
Created June 10, 2021 05:31
C:\Users\<username>\Documents\PowerShell\Microsoft.PowerShell_profile.ps1
New-Alias ll dir
New-Alias which get-command
function listening { netstat -ano -p tcp | find `"$($args)`" | select-string "LISTENING" }
function forceclose { taskkill /f /pid $args }
function status { git status $args }
@goran-peoski-work
goran-peoski-work / lazy.ts
Last active April 13, 2024 19:44
Dynamic import of omponent
import React, { ComponentType, LazyExoticComponent } from "react";
type Transformer = <T>(name: keyof T) => (module: T) => { default: T[keyof T] };
const transformer: Transformer = (
(name) => (module) => ({ default: module[name] })
);
@goran-peoski-work
goran-peoski-work / .gitignore
Created August 11, 2021 06:34
Generated .gitignore
### Sass template
.sass-cache/
*.css.map
*.sass.map
*.scss.map
### macOS template
# General
.DS_Store
.AppleDouble