Skip to content

Instantly share code, notes, and snippets.

View jamesthedove's full-sized avatar

James Falade jamesthedove

View GitHub Profile
@jamesthedove
jamesthedove / nigeria_networks.js
Last active January 13, 2020 08:17
Determine a Nigeria mobile phone Telecommunication Network with Regular Expressions
/**
* Created by James Falade on 11/10/2018.
*/
var mtn = {
pattern: /0(703|706|803|806|810|813|814|816|903|906)\d{7}/,
name: 'MTN Nigeria'
};
var airtel = {
pattern: /0(701|708|802|808|812|902|907)\d{7}/,
<link rel="import" href="../ace-element/ace-element.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;