Skip to content

Instantly share code, notes, and snippets.

View amrohit's full-sized avatar
💭
Learning in Progress...

Rohit Sharma amrohit

💭
Learning in Progress...
View GitHub Profile
@amrohit
amrohit / chat_md_format.py
Created March 13, 2024 14:59 — forked from rhlobo/chat_md_format.py
Creates an markdown file from an Copilot Chat JSON
# You can export a Copilot Chat session in Visual Studio Code
# to a JSON file via `Ctrl+Shift+P | Chat: Export Session...`
# or by choosing `View > Command Palette | Chat: Export Session...`
# Inspired by https://github.com/Marijn-Bergman/copilot-chat-export-formatter
import sys
import json
@amrohit
amrohit / strong-password-regex.md
Created March 1, 2021 09:03 — forked from arielweinberger/strong-password-regex.md
Strong password Regular Expression - NestJS Course
  • Passwords will contain at least 1 upper case letter
  • Passwords will contain at least 1 lower case letter
  • Passwords will contain at least 1 number or special character
  • There is no length validation (min, max) in this regex!

Regular expression for JavaScript:

/((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$/