this is a very simple messge service with static file written in py
非常简单的基于静态文件的使用py写的消息服务
import cv2 | |
vc = cv2.VideoCapture('ba.mp4') | |
c=1 | |
fs = 1 | |
count = 0 | |
fuckl = lambda x : b"#" if x > 20 else b" " |
#!/usr/bin/env python | |
# WTFPL | |
import base64 as b64 | |
import sys,zipfile,os.path | |
from Crypto.Cipher import AES | |
if __name__ == "__main__": | |
basename = os.path.basename(sys.argv[1]) |
/** | |
* hexo-tag-dplayer | |
* Syntax: | |
* {% dplayer key=value ... %} | |
*/ | |
'use strict'; | |
const fs = require('hexo-fs'), | |
util = require('hexo-util'), | |
urlFn = require('url'), | |
path = require('path'), |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
<title>HLS Player</title> | |
<link href="/css/DPlayer.min.css" rel="stylesheet"> | |
</head> | |
<body> | |
<div id="player1" class="dplayer"></div> | |
<script src="/js/DPlayer.min.js"></script><!-- Dplayer 2.0, using master branch --> |
#!/bin/env python | |
#bili xml <==> Dplayer json converter | |
import sys,json | |
# struct and vars | |
xmlhead0="<i><chatserver>" | |
xmlhead1="</chatserver><chatid>" | |
xmlhead2="</chatid><mission>0</mission><maxlimit>" | |
xmlhead3="</maxlimit><source></source><ds></ds><de></de><max_count>" |