Skip to content

Instantly share code, notes, and snippets.

View AshV's full-sized avatar
🌴
Coding @ Maldives Beaches

Ashish Vishwakarma AshV

🌴
Coding @ Maldives Beaches
View GitHub Profile
@AshV
AshV / index.html
Created February 9, 2017 07:14
replaceAll() in JavaScript
<b>1. Use Fail-Safe </b>
<br/> Using more replace() in chain than expected occurrences, this will not harm in anyway but it is not a good practice if because no. of occurrence is not predictable
<br/>
<b>Output : </b>
<div id="UseFailSafe"></div>
<br/>
<hr/>
<b>2. split() join() combination</b>
<br/> This approach will work for any number of occurrences, but more performance costly
@AshV
AshV / fetchxml-to-c-js-formatter.markdown
Last active November 25, 2016 19:07
FetchXML to C# & JS Formatter
@AshV
AshV / AngularJS ng-repeat with search.markdown
Created April 10, 2016 11:09
AngularJS ng-repeat with search

AngularJS ng-repeat with search

AngularJS lets you easily do a instant search if you say save your data as JSON. The elegant way that it is coded and the performance I find great. The JSON data I use, I have collected from Danish streaming TV service YouBio. I use bootstrap 3 to control the markup/layout.

Forked from Sten Hougaard's Pen AngularJS ng-repeat with search.

A Pen by Ashish Vishwakarma on CodePen.

License.

@AshV
AshV / Convert File to base64.markdown
Created April 10, 2016 09:46
Convert File to base64