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
| import ffmpeg | |
| from tensorflow import keras | |
| import cv2 | |
| def video_to_data(): | |
| # Extract frames from video every 1 second and save to data dir using ffmpeg and start from 0 | |
| ffmpeg.input("./subtitles.mp4").output("./data/%d.png", ss="0").run() | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| # -*- coding: utf-8 -*- | |
| import math | |
| def ClearScreen () : | |
| # DESCRIPTION: | |
| # Prints a whole bunch of space to screen | |
| print("\n"*200) | |
| def ColouredString (message,colour) : |
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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # http://blog.ithomer.net | |
| import time | |
| import redis | |
| import threading | |
| class Listener(threading.Thread): | |
| def __init__(self, r, channels): |
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
| #!/usr/bin/env python3 | |
| import subprocess | |
| import sys | |
| import requests | |
| import bs4 | |
| from slugify import slugify | |
| from rich.console import Console |
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
| from PIL import Image | |
| from pathlib import Path | |
| import glob | |
| f_names = glob.glob("./Meme/*.jpg") ## Change this to your directory that hold the memes | |
| for f in f_names: | |
| name = Path(f).stem |
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
| #!/usr/bin/env python3 | |
| import sqlite3 | |
| import os | |
| import random | |
| import subprocess | |
| import requests | |
| # Set up the database connection and cursor | |
| conn = sqlite3.connect("imgur.db") | |
| c = conn.cursor() |
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
| #!/usr/bin/env python3 | |
| import random | |
| import requests | |
| import subprocess | |
| topic = random.choice( | |
| ["meal", "food", "beverage", "wine", "bread", "restaurant", "work"] | |
| ) |
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
| media.jxf88.com | |
| v9banners.com | |
| sbbanner.com | |
| uwin71.com | |
| adtimaserver.vn | |
| api.adtimaserver.vn | |
| log.adtimaserver.vn | |
| media.adtimaserver.vn | |
| media.org.adtimaserver.vn | |
| static.adtimaserver.vn |