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
from moviepy.editor import VideoFileClip | |
from tkinter.filedialog import * | |
import os | |
# Accept only .mov and .mp4 files. Feel free to change. | |
accepted_files = [("Mov files", "*.mov"), ("MP4 files", "*.mp4")] | |
# Select a video which is one of the accepted file types from your machine | |
video_file = askopenfilename(filetypes=accepted_files) |
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
/* | |
<a href="posts/2" data-method="delete"> <---- We want to send an HTTP DELETE request | |
- Or, request confirmation in the process - | |
<a href="posts/2" data-method="delete" data-confirm="Are you sure?"> | |
*/ | |
(function() { |