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
# install firstly color schemes from here: https://github.com/alacritty/alacritty-theme?tab=readme-ov-file | |
import = [ | |
"~/.config/alacritty/themes/themes/ayu_dark.toml" | |
] | |
[env] | |
TERM = "xterm-256color" | |
[font] |
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
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required |
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
// see YouTube Video about it — https://youtu.be/VcBJmHNSxG4 | |
VoxEngine.addEventListener(AppEvents.CallAlerting, function (e) { | |
call = e.call; | |
callerid = e.destination; | |
call.record(); | |
var pstnCall = VoxEngine.callPSTN(e.destination, 'your_495_or_8800_phone_number'); | |
VoxEngine.easyProcess(e.call, pstnCall); | |
}); |
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 datetime import datetime | |
from typing import NamedTuple | |
class Group(NamedTuple): | |
id: int | |
name: str | |
class Client(NamedTuple): |
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 pickle | |
from collections import namedtuple | |
keys = [["tmp"], ["tmp1", "tmp2"]] | |
values = [[1], [2, 3]] | |
s = [] | |
for index, (k, v) in enumerate(zip(keys, values)): | |
globals()[f"cls{index}"] = namedtuple(f"cls{index}", k) | |
s.append(globals()[f"cls{index}"](*v)) |