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
| I think you should tranfer image in base64 to image with blob, because when you use base64 image, it take a lot of log lines or a lot of line will send to server. With blob, it only the file. You can use this code bellow: | |
| dataURLtoBlob = (dataURL) -> | |
| # Decode the dataURL | |
| binary = atob(dataURL.split(',')[1]) | |
| # Create 8-bit unsigned array | |
| array = [] | |
| i = 0 | |
| while i < binary.length | |
| array.push binary.charCodeAt(i) |
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
| convert transparent-img1.png transparent-img2.png transparent-img3.png -channel Alpha favicon.ico |
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
| const params = {} | |
| query.replace(/([^=?#&]*)=([^?#&]*)/g, function(e, $1, $2) { | |
| params[decodeURIComponent($1)] = decodeURIComponent($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
| //URL regexp | |
| \/\/api\.jellow\.club\/1\.0\/users\/profile | |
| if (!follewedList) { | |
| var follewedList = new Set() | |
| } | |
| (($request, $response, $done) => { | |
| const JELLOW_ID = 'YOUR_JELLOW_ID' | |
| const requestUrl = $request.url |
OlderNewer