Skip to content

Instantly share code, notes, and snippets.

View emelcd's full-sized avatar
🎯
Coding

Mike emelcd

🎯
Coding
View GitHub Profile
@emelcd
emelcd / search_implementation.js
Created April 25, 2022 19:29
Search for the gonzalo
import "./style.css";
const categoriesToSearch = [
"Tunisian Restaurant",
"Hypnotherapy Service",
"Armenian Restaurant",
"Water Damage Restoration Service",
"Lumber Store",
"Tire Shop",
"School District",
@emelcd
emelcd / crop_merge.py
Created September 16, 2021 02:13
An easy python script to crop and merge video using ffmpeg
import os
from uuid import uuid4
def crop(start, end, input):
# get the path of the script
output = "__"+str(uuid4()) + ".mp4"
script_path = os.path.dirname(os.path.realpath(__file__))
os.system('echo "file \'{}\'" >> list.txt'.format(script_path+'/'+output))
cmd = "ffmpeg -i " + input + " -ss " + \
start + " -to " + end + " -c copy " + output