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
{ | |
"last_node_id": 83, | |
"last_link_id": 236, | |
"nodes": [ | |
{ | |
"id": 16, | |
"type": "KSamplerSelect", | |
"pos": [ | |
484, | |
751 |
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
(function() { | |
'use strict'; | |
function collectUrls() { | |
const urlPattern = /^https:\/\/www\.linkedin\.com\/company\/[a-zA-Z0-9-]+\/?$/; | |
const links = document.querySelectorAll('a'); | |
const matchingUrls = []; | |
links.forEach(link => { | |
const href = link.href; |
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 requests | |
import subprocess | |
import os | |
import signal | |
def download_file(url, target_path): | |
response = requests.get(url, stream=True) | |
with open(target_path, "wb") as f: | |
for chunk in response.iter_content(chunk_size=8192): | |
f.write(chunk) |
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
CREATE TEXT SEARCH DICTIONARY public.vietnamese ( | |
TEMPLATE = pg_catalog.simple, | |
STOPWORDS = vietnamese | |
); | |
CREATE TEXT SEARCH CONFIGURATION public.vietnamese ( | |
COPY = pg_catalog.english | |
); | |
ALTER TEXT SEARCH CONFIGURATION public.vietnamese |
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 pandas as pd | |
from io import StringIO | |
import datetime | |
def to_df(table_data): | |
df = pd.read_csv(table, delimiter=",") | |
return df |
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
4r5e | |
5h1t | |
5hit | |
a55 | |
anal | |
anus | |
ar5e | |
arrse | |
arse | |
ass |
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 selenium import webdriver | |
from selenium.webdriver.chrome.service import Service | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
from webdriver_manager.chrome import ChromeDriverManager | |
from selenium.webdriver.common.by import By | |
def get_douyin_video(url): | |
options = webdriver.ChromeOptions() | |
chrome_options = { |
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 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.
NewerOlder