Regex: https://regexr.com/3ok5o
Response:
"$2"\n
Response:
"$2"\n
This gist contains the English srt file embedded in "Hamlet (2015) 10-15-2015 1080p BDRip H.264 AAC2.0" and the py script to translate it. And of course the translated en.srt is included.
| <!-- view-source:https://www.moneypay.com.tr/download.html --> | |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <script> | |
| (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | |
| (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | |
| m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | |
| })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); |
| const axios = require('axios'); | |
| const fs = require('fs'); | |
| // SVG file to convert | |
| const filePath = './svg_external.svg'; | |
| // Output file path | |
| const outputFilePath = './svg_external_export_base64.svg'; | |
| /** |
| var o = { | |
| y = "xx???x=xx?xx?=" | |
| } | |
| var abc = String.fromCharCode(65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122); | |
| var dechar = function (x) { | |
| return String.fromCharCode(x) | |
| }; |
To combine audio and video in 2 parts into a single video with FFMPEG:
Example Websites:
| /* CONSOLE MESSAGE */ | |
| var consoleCopyrightStyle = [ | |
| "margin: 16px 0", | |
| "border-radius: 10px" | |
| ].join(";"); | |
| var consoleWarningHeaderStyle = [ | |
| "color: #ff0000", | |
| "font-size: 32px", | |
| "font-weight: 600", | |
| "margin: 8px 0" |
| // Source: https://www.codewars.com/kata/515decfd9dcfc23bb6000006/solutions/javascript | |
| const isValidIP = (str) => { | |
| const octet = '(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]?|0)'; | |
| const regex = new RegExp(`^${octet}\\.${octet}\\.${octet}\\.${octet}$`); | |
| return (regex.test(str)) ? true : false | |
| } // Source: https://stackoverflow.com/a/54742549/15030183 | |
| function isValidIP(str) { | |
| return /^(([1-9]?\d|1\d\d|2[0-4]\d|25[0-5])(\.(?!$)|$)){4}$/.test(str); |