Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
@

goran-peoski-work

💭
@
View GitHub Profile
@goran-peoski-work
goran-peoski-work / Microsoft.PowerShell_profile.ps1
Created Jun 10, 2021
C:\Users\<username>\Documents\PowerShell\Microsoft.PowerShell_profile.ps1
View 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 Jul 7, 2021
Dynamic import of omponent
View lazy.ts
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] })
);
View .gitignore
### Sass template
.sass-cache/
*.css.map
*.sass.map
*.scss.map
### macOS template
# General
.DS_Store
.AppleDouble