Skip to content

Instantly share code, notes, and snippets.

View clairechabas's full-sized avatar

Claire Chabas clairechabas

View GitHub Profile
@arielweinberger
arielweinberger / strong-password-regex.md
Last active April 12, 2024 19:57
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]).*$/
@robertcoopercode
robertcoopercode / dark_colors.yaml
Created February 17, 2019 04:13
Color LS custom color configuration file
# Main Colors
unrecognized_file: palegreen
recognized_file: turquoise
dir: dodgerblue
# Link
dead_link: red
link: cyan
# Access Modes
@adrianhall
adrianhall / .eslintrc.js
Last active April 29, 2024 15:01
A sample .eslintrc file
var OFF = 0, WARN = 1, ERROR = 2;
module.exports = exports = {
"env": {
"es6": true
},
"ecmaFeatures": {
// env=es6 doesn't include modules, which we are using
"modules": true