Skip to content

Instantly share code, notes, and snippets.

View muhammadawaisshaikh's full-sized avatar
💻
#codedWorld #dev

Muhammad Awais muhammadawaisshaikh

💻
#codedWorld #dev
View GitHub Profile
@thisiszoaib
thisiszoaib / app.module.ts
Last active January 30, 2022 07:01
Loader Network Interceptor
@NgModule({
declarations: [AppComponent],
imports: [
BrowserModule
],
providers: [
{
provide: HTTP_INTERCEPTORS,
useClass: NetworkInterceptor,
multi: true
@ktroye
ktroye / gist:6007958
Created July 16, 2013 11:34
Javascript: Email validation
function checkMail(email){
var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if (filter.test(email)) {
return true;
}
return false;
}