Skip to content

Instantly share code, notes, and snippets.

Nei Santos nei

Block or report user

Report or block nei

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nei
nei / validate-uk-mobile-number.php
Last active Nov 6, 2019
Check if number is a valid UK mobile number.
View validate-uk-mobile-number.php
<?php
/**
* Function to validate if the phone number is Uk Mobile number
* Optinal first part: '+44' or '44', also a
* Optinal second part: '0'
* Mandatory: 7 followed by [1-9] excluding 0,2 followed by 8 digits
* Reference: https://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom
*
* @param $number
* @return bool
@nei
nei / src-external-case-sensitive
Last active Jul 16, 2019
These are how I setup my src folder as case-sensitive on an external drive due to my shitty 128Gb macbook.
View src-external-case-sensitive
## Steps used to setup the ~/src
1. Create a virtual disk on my external hard drive
Install the script https://gist.github.com/scottsb/479bebe8b4b86bf17e2d
mkdir /Volumes/SAMSUNG/disks/
1.1. Review config
You can’t perform that action at this time.