Skip to content

Instantly share code, notes, and snippets.

View ikechukwukalu's full-sized avatar
🎯
Focusing

Ikechukwu ikechukwukalu

🎯
Focusing
  • Lagos, Nigeria
View GitHub Profile
@ikechukwukalu
ikechukwukalu / LinkedList.js
Created October 23, 2021 10:43
Simple Data Structures
/**
*
* NAME: Kalu Ikechukwu
* GitHub: https://github.com/ikechukwukalu
* Code: Linked List
*
*/
class Node {
constructor(data, previous, next) {
this.data = data;
@ikechukwukalu
ikechukwukalu / passwordValidation.php
Created September 2, 2020 15:36 — forked from Michael-Brooks/passwordValidation.php
Laravel Password validation Regex (Contain at least one uppercase/lowercase letters and one number)
<?php
/*
* Place this with the rest of your rules.
* Doesn't need to be in an array as there are no pipes.
* Password is required with a minimum of 6 characters
* Should have at least 1 lowercase AND 1 uppercase AND 1 number
*/
$rules = [
'password' => 'required|min:6|regex:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).+$/'
];