Skip to content

Instantly share code, notes, and snippets.

Avatar

Patrick Knowlan patricknowlan

View GitHub Profile
@patricknowlan
patricknowlan / Phone Number Filter - Angular
Created Mar 15, 2016
Phone number filter, removes special characters, removes spaces, returns "N/A" if no phone number. For US phone numbers only.
View Phone Number Filter - Angular
//Example of how to use the filter
<span> {{vm.phone_number | phonenumber}}</span>
//Example of how to add the filter
(function() {
'use strict';
angular
@patricknowlan
patricknowlan / Create Cookie - Dev Console
Created Mar 14, 2016
Function to create a cookie via the browser dev console. Just update, copy, and paste.
View Create Cookie - Dev Console