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 PySide6.QtSvg | |
| import PySide6.QtGui | |
| import PySide6.QtCore | |
| import moviepy.video.VideoClip | |
| import moviepy.editor | |
| import numpy as np | |
| from moviepy.editor import * | |
| from vectortween.PointAnimation import PointAnimation | |
| from vectortween.SequentialAnimation import SequentialAnimation |
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 everything needed to edit video clips | |
| from moviepy.editor import * | |
| from vectortween.PointAnimation import PointAnimation | |
| fps = 25 | |
| duration = 10 | |
| W = 2000 | |
| H = 500 | |
| # Generate a text clip |
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
| "color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme", | |
| "default_root": "current", | |
| "file_exclude_patterns": | |
| [ | |
| "*.pyc", | |
| "*.pyo", | |
| "*.dll", | |
| "*.obj", | |
| "*.o", |
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 os import path | |
| from pydub import AudioSegment | |
| import sys | |
| # pydub use ffmpeg to file manupulation | |
| # don't forget to install ffmpeg | |
| sys.path.append('/usr/local/bin/ffmpeg') | |
| def load_songs(fn): | |
| meta = {} | |
| songs = [] |
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
| " plugins | |
| let need_to_install_plugins = 0 | |
| if empty(glob('~/.vim/autoload/plug.vim')) | |
| silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs | |
| \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
| let need_to_install_plugins = 1 | |
| endif | |
| call plug#begin() | |
| Plug 'tpope/vim-sensible' |
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
| """ | |
| This is a simple example of usage of CallbackData factory | |
| For more comprehensive example see callback_data_factory.py | |
| """ | |
| import asyncio | |
| import logging | |
| from aiogram import Bot, Dispatcher, executor, types | |
| from aiogram.contrib.fsm_storage.memory import MemoryStorage |
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
| <template> | |
| <div class="container"> | |
| <div class="row mt-5"> | |
| <div class="col-md-12"> | |
| <div class="card"> | |
| <div class="card-header"> | |
| <h3 class="card-title">Users</h3> | |
| <div class="card-tools"> | |
| <button class="btn btn-success" data-toggle="modal" data-target="#addNew">Add New |
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
| # install 7.1.3 on ubuntu from source | |
| https://techlist.top/php7-install-from-source/ | |
| #1. Re-Install PHP 5.6 | |
| #What worked for me was this guide: http://www.lornajane.net/posts/2016/php-7-0-and-5-6-on-ubuntu | |
| #Actually is not required to remove php7.0, you can install php5.6 together ( also because you will have dependency problem with phpmyadmin package that required php7.0) | |
| #Assuming libapache2-mod-php is a suitable way to enable PHP in Apache for you, you can proceed in this way: | |
| sudo add-apt-repository ppa:ondrej/php |
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
| 1. Открываем Sublime Text -> Tools -> Build System -> New Build System | |
| 2. Вставляем в открывшийся файл следующие строки, чтобы получилось вот так: | |
| { | |
| "cmd": ["python3", "-i", "-u", "$file"], | |
| "file_regex": "^[ ]File \"(...?)\", line ([0-9]*)", | |
| "selector": "source.python" | |
| } | |
| 3. Сохраняем файл с названием python3.sublime-build и не меняем путь предложенный редактором |
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
| # Fix root access error in new mysql version | |
| sudo mysql -u root | |
| ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'new-password'; | |
| sudo service mysql stop | |
| sudo service mysql start | |
| # change root password | |
| mysqladmin -u root -p password | |
| show databases; |
NewerOlder