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
1 | |
00:00:35,233 --> 00:00:37,028 | |
自宣统皇帝退位以后 | |
2 | |
00:00:38,067 --> 00:00:40,294 | |
鹅城一共来过51任县长 | |
3 | |
00:00:40,499 --> 00:00:44,795 |
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
var favorite_title = '三连用收藏夹-1'; | |
var interval = 30; // second | |
var delay = 2; // second | |
function sleep (time) { | |
return new Promise((resolve) => setTimeout(resolve, time)); | |
} | |
setInterval(() => { |
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 copy | |
class S2F: | |
def __init__(self, name='_'): | |
self._name = name | |
def __call__(self, args, body): | |
_ = locals() | |
exec('def {}({}):\n\t{}'.format(self._name, args, body.replace('\n', '\n\t'))) |
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
sqlite_path = 'data.sqlite' | |
import os | |
from datetime import datetime, date, time | |
from time import localtime, time as now | |
from sqlalchemy import Column, Integer, String, Date, Time, create_engine | |
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy.orm import sessionmaker |
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 os | |
import pathlib | |
import shutil | |
import subprocess | |
import tempfile | |
import warnings | |
def tinypng(input_path, output_path): | |
'''TinyPNG – Compress PNG images while preserving transparency |
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
#include <iostream> | |
#define pointer(x) *x | |
#define address(x) &x | |
#define refer(x) &x | |
using namespace std; | |
void swap(int refer(x), int refer(y)) { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
body { | |
background: #000 no-repeat center center fixed; | |
margin: 0; | |
cursor: none; | |
} |
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
class Alphabet: | |
'''字母表 | |
Reference: | |
- http://www.fileformat.info/info/charset/UTF-8/list.htm | |
''' | |
def __init__(self): | |
self._alphabets = dict() | |
self._add('latin_capital_letter', 0x41, 0x41) | |
self._add('latin_small_letter', 0x61, 0x61) |
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
'''requirements.txt | |
opencv_python==4.2.0.34 | |
prompt_toolkit==3.0.5 | |
''' | |
import cv2 | |
import itertools | |
import math | |
import os | |
import prompt_toolkit |
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
unbindall | |
bind "0" "slot10" | |
bind "1" "slot1" | |
bind "2" "slot2" | |
bind "3" "slot3" | |
bind "4" "slot4" | |
bind "5" "slot5" | |
bind "6" "slot6" | |
bind "7" "slot7" | |
bind "8" "slot8" |