Skip to content

Instantly share code, notes, and snippets.

View shashu10's full-sized avatar

Shashank Bharadwaj shashu10

View GitHub Profile
@shashu10
shashu10 / README.md
Created December 9, 2017 10:28 — forked from jxson/README.md
README.md template

Synopsis

At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)

Code Example

Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.

Motivation

@shashu10
shashu10 / ngInputFormatter.js
Last active August 16, 2018 21:28
Angular Directive for Phone number and SSN input formatting. Eg: For phone numbers, 4151002020 will be formatted as (415) 100-2020. Can be used to implement any other kind of number input formatting
/*
Automatic number formatting in input field
Usage:
First add 'inputFormatter' to your angular app
<input type="text" formatted-input format-type="tel">
for SSN use format-type="ssn"