Skip to content

Instantly share code, notes, and snippets.

import traceback
from Crypto.Cipher import DES
from Crypto.Util import Padding
from base64 import b64encode, b64decode, encode
from requests import Session
from re import compile
import os
import logging
import sys
import json
@typenoob
typenoob / report.py
Last active January 18, 2022 07:08
青龙面板打卡脚本(浙江理工大学)
from Crypto.Cipher import DES
from Crypto.Util import Padding
from base64 import b64encode, b64decode, encode
from requests import Session
from re import compile
import os
import logging
import sys
logger = logging.getLogger(name=None) # 创建一个日志对象
@typenoob
typenoob / gist:02574e0bd84216f9195254acbf53b808
Created February 11, 2022 05:36
爬取浙江理工大学学生信息
import requests
import csv
import time
grades = ['2019329600', '2019329621']
result = []
null = None
for grade in grades:
for spec in [str(num).zfill(3) for num in range(1000)]:
r = requests.get(
'http://fangyi.zstu.edu.cn:5004/api/DataSource/GetDataSourceByNo?sqlNo=JTDK_XS$%s' % (grade+spec))
@typenoob
typenoob / 有错误
Last active February 28, 2022 15:26
记录一个神奇的vue3 bug?
<template>
<h1>这是第{{ current }}页</h1>
<MovieCard
:id="movies.movies[current]"
:title="movies.movies[current]"
imgurl="https://images.weserv.nl/?url=https://img1.doubanio.com/view/photo/s_ratio_poster/public/p2848324437.webp"
/>
<div>
<a-pagination
v-model:current="current"
@typenoob
typenoob / gist:3f8fd8a981997670ac7faa7ceee52f68
Created May 29, 2022 15:05
软件记录 awesome software recoding
名称 功能 平台 特色 组织
BlazeMeter 持续测试平台 chrome插件 登陆后可导出jmx脚本 BlazeMeter by Perforce
JMeter 性能测试工具 windows/linux 执行jmx脚本,进行静态资源的压力测试 apache软件基金会