This file contains 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
import sys | |
import argparse | |
""" | |
Example usecase: | |
python split_srt_lines.py SUBTITLE_FILE_PATH.srt -o OUTPUT_FILE_PATH.srt --max_line_length=42 --comma_split_percent=75 | |
if you don't specify an output path, it will replace the file content of the input file |
This file contains 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
# Copyright (c) 2017 Stanislav Bobokalo & Alexey Borontov & Dominic T | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# The above copyright notice and this permission notice shall be included in all |
Percentage:
<img src="https://user-images.githubusercontent.com/16319829/81180309-2b51f000-8fee-11ea-8a78-ddfe8c3412a7.png" width=50% height=50%>
Pixels:
<img src="https://user-images.githubusercontent.com/16319829/81180309-2b51f000-8fee-11ea-8a78-ddfe8c3412a7.png" width="150" height="280">
solution from https://stackoverflow.com/a/17584272/2627873
This solution adds the subtitles to the video as a separate optional (and user-controlled) subtitle track.
So you can choose the subtitle in VLC for example, it's not hard-coded or burned-in. And it won't re-encode the entire file so it's really fast.
- ffmpeg is required
- movie = great_movie.mp4 (works with mkv too)
- subtitle = great_movie.english.srt
This file contains 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
After searching for more than 6 hours trying to understand what is zoho's mail problem to send emails! | |
After i red lots lots of there answer with no helpul solution i found the issue was that you need to have the ``` sender ``` option | |
in your nodemailer option same like email with same sender name and sender email. like this : ``` from: '"senderNameSameLikeTheZohoOne" <[email protected]>',``` | |
my config : | |
``` | |
const transporter = nodemailer.createTransport({ | |
service:'Zoho', | |
host: 'smtp.zoho.com', | |
port: 465, |
This file contains 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
ssh [email protected] -L <ANY_AVAILABLE_PORT_YOU_FANCY>:127.0.0.1:39017 -N |
This file contains 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
import web3 | |
import json | |
from eth_account import Account | |
from web3 import Web3 | |
w3 = Web3(Web3.HTTPProvider('https://ropsten.infura.io/v3/apiKey')) | |
acct = Account.privateKeyToAccount('private key') | |
nonce = w3.eth.getTransactionCount(acct.address) | |
transaction = { | |
'to' : toAccount, | |
'value': 1, |
This file contains 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
/** | |
* Used https://www.odditysoftware.com/page-webtools16.htm to remove comments and minify the code to use it as a bookmarklet | |
*/ | |
( | |
function () { | |
/* Exiting if the webpage is not Twitter or a valid tweet */ | |
if (window.location.origin !== 'https://twitter.com' || window.location.pathname.split('/').length !== 4) return alert('This is not a valid Twitter poll!'); | |
alert('Please wait this can take up to 30 seconds. Select OK or close to get started. If this is a valid poll, you will get the result when it is ready...:)'); |
NewerOlder