Subin Varghese
Subin Varghese
Following is my relevant code: ``` gulp.task('scripts', ['clean'], function() { return gulp. src('src/**/*.js'). pipe(sourcemaps.init()). pipe(uglify()). pipe(concat('script.js')). pipe(sourcemaps.write('.')). pipe(cachebust.resources()). pipe(gulp.dest("/dist")); }); ``` Now, the files generated are: `script.12345678.js` and `script.js.87654321.map` In...
According to [W3C](https://dvcs.w3.org/hg/xhr/raw-file/tip/Overview.html#the-setrequestheader()-method), following headers are reserved and can't be explicitly set by JS: - header name starting with `Proxy-` or `Sec-` - Accept-Charset - Accept-Encoding - Access-Control-Request-Headers - Access-Control-Request-Method...
Steps to reproduce: 1. Page: http://kamilkp.github.io/angular-vs-repeat/#?tab=1 with content visible 2. Scroll to the middle of the item list 3. Run `angular.element(document.body).scope().items.collection.length = 0` in the console to clear the items....
I have a usecase where a service (let's say `DateService`) uses a particular angular filter (let's say `Date` filter) inside JS code. How do I mock the filter when testing...
``` # npm audit report braces
User can choose what can be Title placeholder for a URL that has been blacklisted. Scenario: - User has blacklisted www.reddit.com - And then pasted the url `https://www.reddit.com/r/Damnthatsinteresting/comments/1m85nur/footage_of_the_2004_indian_ocean_tsunami_which/` - If...