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
from flask import Flask | |
from flask import request | |
app = Flask(__name__) | |
BD_KEY = '0123456789abcdef' | |
GD_KEY = '0123456789abcdef' | |
GG_KEY = '0123456789abcdef' | |
import requests | |
import googlemaps |
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
# 外卖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] |
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
#!/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 |
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
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 |
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 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 |