import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# -------- Plotting Subtitle/Text length Percentiles --------------------
#Loading the Dataframe
text = pd.read_csv("descriptions.csv")
Discover gists
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
/*------------------------------------------ | |
Responsive Grid Media Queries - 1280, 1024, 768, 480 | |
1280-1024 - desktop (default grid) | |
1024-768 - tablet landscape | |
768-480 - tablet | |
480-less - phone landscape & smaller | |
--------------------------------------------*/ | |
@media all and (min-width: 1024px) and (max-width: 1280px) { } | |
@media all and (min-width: 768px) and (max-width: 1024px) { } |
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
Команды в Git Bash консоли | |
clear — Очистить консоль | |
Навигация | |
pwd — Показать текущий каталог | |
ls - Показать файлы в данной папке, кроме скрытых | |
ls -f — Показать файлы в данной папке, включая и скрытые | |
cd c:/ — Перейти в конкретный каталог | |
cd - — Вернуться назад | |
cd .. — Выйти на 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
<?php | |
/** | |
* Plugin Name: Content Security Policy | |
* Version: 1.0.0 | |
* Description: Adds a Content-Security-Policy header to all non-admin requests. | |
* License: GNU General Public License v2 | |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
* Original Inspiration: https://gist.github.com/westonruter/c8b49406391a8d86a5864fb41a523ae9 | |
*/ |
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
CACHE_INFO: 127.0.0.1 | |
CF_CONNECTING_IP: 127.0.0.1 | |
CF-Connecting-IP: 127.0.0.1 | |
CLIENT_IP: 127.0.0.1 | |
Client-IP: 127.0.0.1 | |
COMING_FROM: 127.0.0.1 | |
CONNECT_VIA_IP: 127.0.0.1 | |
FORWARD_FOR: 127.0.0.1 | |
FORWARD-FOR: 127.0.0.1 | |
FORWARDED_FOR_IP: 127.0.0.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
"workbench.colorCustomizations": { | |
// Contrast Colors - The contrast colors are typically only set for high contrast themes. If set, they add an additional border around items across the UI to increase the contrast. | |
"contrastActiveBorder": "", | |
"contrastBorder": "", | |
// Base Colors | |
"focusBorder": "", | |
"foreground": "", | |
"widget.shadow": "", | |
"selection.background": "", | |
"descriptionForeground": "", |
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 os | |
import asyncio | |
import subprocess | |
import importlib | |
import sys | |
from dotenv import load_dotenv | |
from lionagi import Session | |
from e2b_code_interpreter import CodeInterpreter | |
from llama_index.core import ( | |
VectorStoreIndex, |
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
#!/bin/bash | |
# Examples taken from https://opensource.com/article/17/6/ffmpeg-convert-media-file-formats | |
# Convert a webm file to a matroska format with a vp9 encoding and keeping the same audio encoding. | |
# Also changes the bitrate to 1Mb/s | |
ffmpeg -i input.webm -c:a copy -c:v vp9 -b:v 1M output.mkv | |
# Same but change the frame rate to 30 FPS and dropping the bitrate conversion | |
ffmpeg -i input.webm -c:a copy -c:v vp9 -r 30 output.mkv | |
# Same but only setting the video size to a predetermined format HD 720 in this case |
NewerOlder