2880 0 1 2 3 4 5 6 7 8 9 a b c d e f
2880⠀⠀ ⠁ ⠂ ⠃ ⠄ ⠅ ⠆ ⠇ ⠈ ⠉ ⠊ ⠋ ⠌ ⠍ ⠎ ⠏
2810 ⠐ ⠑ ⠒ ⠓ ⠔ ⠕ ⠖ ⠗ ⠘ ⠙ ⠚ ⠛ ⠜ ⠝ ⠞ ⠟Theme | History | KeyBinding
in order to make windows powershell more comfortable and add a some theme and features like history binding, auto complete on keypress and so on, if you have used linux teminl wiht zsh for example, we are going to make powershell like that as much as we can.
Subtitles are often not displayed properly on players due to incorrect encoding/decoding.
this python script is able to recive a path to subtitle/*.str files and change encoding form arabic/windows-1256 to utf-8.
'''
convert all subtile (*.srt) files inside given directory
from encoding `windows 1256` to `utf-8`
'''if you need users to be loged in first, before visiting your website, so it's easier to use a middleware to check if they're loged in or not.
inorder to have such a middleware, use the following code:
# middleware.py
import re
from django.conf import settings
from django.contrib.auth.middleware import AuthenticationMiddleware
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
| # I had mistakenly downloaded some video fiels without sound so then after I had to download the sound files related but | |
| # how could I merge them to finally have a single file? following code would this! | |
| # !attention this file has to be inside the directory where the video and sound exists - | |
| # and the result would be in a sub-directory named `output` | |
| import os | |
| from os import listdir | |
| from os.path import isfile, join |
NewerOlder
