Skip to content

Instantly share code, notes, and snippets.

View lizy14's full-sized avatar

Zhaoyang Li lizy14

View GitHub Profile
@lizy14
lizy14 / main.py
Created November 16, 2018 06:36
银行代发与研究生资助奖励查询
import os
import re
import json
import getpass
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
import requests
from bs4 import BeautifulSoup
@lizy14
lizy14 / tunet-masks.txt
Created January 28, 2018 06:37
清华大学校园网 IP 地址段
59.66.0.0/16
101.5.0.0/16
101.6.0.0/16
118.229.0.0/19
166.111.0.0/16
183.172.0.0/15
202.112.39.2/32
219.223.168.0/21
219.223.176.0/20
@lizy14
lizy14 / tmux_local_install.sh
Last active December 15, 2017 12:07 — forked from ryin/tmux_local_install.sh
bash script for installing tmux without root access
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=2.6
@lizy14
lizy14 / aa.py
Created June 6, 2017 15:25
外卖AA计算器
# 外卖AA计算器,为处理外送费、满减
# 输入总价、各人比例
# eg. python3 aa.py 44+71 13+18 19+28 13+18 13+18
import sys
def aa(total, per_person):
sum_per_person = sum(per_person)
return [p * total / sum_per_person for p in per_person]
@lizy14
lizy14 / map-apis.py
Last active January 28, 2018 06:42
Map APIs Aggregation
from flask import Flask
from flask import request
app = Flask(__name__)
BD_KEY = '0123456789abcdef'
GD_KEY = '0123456789abcdef'
GG_KEY = '0123456789abcdef'
import requests
import googlemaps