git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| import os | |
| import subprocess | |
| import argparse | |
| def sync_audio(video_dir, audio_dir, pattern): | |
| print(f"Video directory: {video_dir}") | |
| print(f"Audio directory: {audio_dir}") | |
| video_files = [f for f in os.listdir(video_dir) if f.endswith('.mkv')] |
| SELECT | |
| substring(query, 1, 50) AS short_query, | |
| round(total_exec_time::numeric, 2) AS total_exec_time, | |
| calls, round(mean_exec_time::numeric, 2) AS mean, | |
| round ((100 * total_exec_time / sum(total_exec_time::numeric) OVER ())::numeric, 2) AS percentage_overall | |
| FROM pg_stat_statements | |
| ORDER BY total_exec_time DESC | |
| LIMIT 35; |
| import pyautogui | |
| import time | |
| import random | |
| time.sleep(5) | |
| while True: | |
| pyautogui.moveRel(100, 0) | |
| time.sleep(1) | |
| pyautogui.moveRel(0, -100) | |
| time.sleep(1) |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| class ValA: | |
| def __init__(self, obj): | |
| self.obj = obj | |
| def get(self): | |
| return self.obj | |
| def set(self, obj): | |
| self.obj = obj |
| git rm -r --cached . | |
| git add . | |
| git commit -m "Re index done" |
| //Подключить namespace | |
| using System.Data.OleDb; | |
| //Добавить поля в класс | |
| public static string connectString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=../../../Exam.mdb;"; | |
| private OleDbConnection myConnection; | |
| //Конструктор формы | |
| public MainForm() | |
| { |
First install all these prerequisites for compiling:
sudo apt install g++ autoconf libfontconfig1-dev pkg-config libjpeg-dev libopenjpeg-dev gnome-common libglib2.0-dev gtk-doc-tools libyelp-dev yelp-tools gobject-introspection libsecret-1-dev libnautilus-extension-dev
First download the encoding files (no need to compile these) to the current working directory
wget https://poppler.freedesktop.org/poppler-data-0.4.7.tar.gz
| import cv2.cv as cv | |
| import tesseract | |
| gray = cv.LoadImage('captcha.jpeg', cv.CV_LOAD_IMAGE_GRAYSCALE) | |
| cv.Threshold(gray, gray, 231, 255, cv.CV_THRESH_BINARY) | |
| api = tesseract.TessBaseAPI() | |
| api.Init(".","eng",tesseract.OEM_DEFAULT) | |
| api.SetVariable("tessedit_char_whitelist", "0123456789abcdefghijklmnopqrstuvwxyz") | |
| api.SetPageSegMode(tesseract.PSM_SINGLE_WORD) | |
| tesseract.SetCvImage(gray,api) | |
| print api.GetUTF8Text() |