This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sed -E "s/([\!#-'*+\/-9?A-Z^-~-]+(\.[\!#-'*+\/-9=?A-Z^-~-]+)*|\"([]\!#-[^-~ \t]|(\\[\t -~]))+\")@([\!#-'*+\/-9=?A-Z^-~-]+(\.[\!#-'*+\/-9=?A-Z^-~-]+)*|\[[\t -Z^-~]*])/masked-email@kookoo.com/g" expensive-ops.20170904222416Z > expensive-ops.20170904222416Z_masked |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SaveThePDF(url, filename) { | |
| const writeFile = denodeify(fs.writeFile); | |
| const requestPromised = denodeify(request.defaults({ | |
| 'gzip': true, | |
| headers: { | |
| 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.101 Safari/537.36', | |
| 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*\/*;q=0.8', | |
| } | |
| }), function(err, httpResponse, body) { | |
| // Convert 3 paramters to 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script src="https://apis.google.com/js/client.js?onload=init"></script> | |
| var init = function() { | |
| window.initGapi(); | |
| } | |
| angular.module('MyModule', []) | |
| .service('gapiService', function($q,$rootScope, $window) { | |
| var service = $rootScope.$new(true); | |
| var youtubeAPIready = $q.defer(); |