Skip to content

Instantly share code, notes, and snippets.

View DennySORA's full-sized avatar

DennySORA DennySORA

  • Taiwan
View GitHub Profile
from abc import ABC, abstractmethod
class IVodeoEngine(ABC):
@abstractmethod
def split_video(self, video_path: str, destination_folder: str):
pass
@abstractmethod
def check_video_image(self, destination_folder: str):
@DennySORA
DennySORA / tmux-cheatsheet.markdown
Created October 7, 2020 13:54 — forked from ryerh/tmux-cheatsheet.markdown
Tmux 快捷键 & 速查表 & 简明教程

注意:本文内容适用于 Tmux 2.3 及以上的版本,但是绝大部分的特性低版本也都适用,鼠标支持、VI 模式、插件管理在低版本可能会与本文不兼容。

Tmux 快捷键 & 速查表 & 简明教程

启动新会话:

tmux [new -s 会话名 -n 窗口名]

恢复会话:

import random
from typing import Tuple
def get_reciprocal(value: int, mod: int) -> int:
for i in range(1, mod):
if (i * value) % mod == 1:
return i
return -1
from typing import Tuple
import random
def is_prime_of_miller_rabin_test(n: int, trials_time: int = 5) -> bool:
def test_prime_in_100(n: int) -> bool:
prime_list = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37,
41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97]
for i in prime_list:
if n % i == 0:
@DennySORA
DennySORA / Simple markdown parsing to list struct
Created February 25, 2020 08:24
Simple markdown parsing to list struct
def CassificationToMD(textList, level=-1):
data = list()
count = 0
noIndex = False
while True:
if len(textList[count:]) == 0:
break