This file contains hidden or 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 requests | |
| # replace github personal token | |
| ghp = 'ghp_xxxxxxxxxxxxxxxxxxxxxxxxx' | |
| username = 'JiaT75' | |
| p = 0 | |
| def event(p): | |
| params = { |
This file contains hidden or 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 lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Locate Me</title> | |
| </head> | |
| <body> | |
| <button id="find-me">Locate</button> | |
| <p id="status"></p> |
This file contains hidden or 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> | |
| <title>PushState Title</title> | |
| </head> | |
| <body> | |
| <h1>PushState Test</h1> | |
| <button onclick="history.pushState(null, '', 'bar.html')">Push State</button> | |
| </body> | |
| </html> |
This file contains hidden or 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
| ! 通用 CDN 域名 | |
| ||bsccdn.net^ | |
| ||gjfzpt.cn^ | |
| ||jomodns.cn^ | |
| ||kuiniuca.com^ | |
| ||pkoplink.com^ | |
| ||saxysec.com^ | |
| ||szbdyd.com^ | |
| ||uhabo.com^ | |
| ||xycdn.com^ |
This file contains hidden or 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 requests | |
| import time | |
| import json | |
| # 高德API密钥(请替换为您自己的密钥) | |
| AMAP_KEY = "YOUR_API_KEY_HERE" | |
| def search_poi_by_keyword(city, keyword): | |
| """使用关键字搜索POI""" | |
| base_url = "https://restapi.amap.com/v3/place/text" |
This file contains hidden or 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
| /** | |
| * Luhn校验算法校验银行卡号;Luhm校验规则:16位银行卡号(19位通用):1、将未带校验位的 15(或18)位卡号从右依次编号 1 到 15(18),位于奇数位号上的数字乘以 2;2、将奇位乘积的个十位全部相加,再加上所有偶数位上的数字。 | |
| * @param {string} bankno 银行卡号 | |
| * @returns 是否为正确的银行卡号 | |
| */ | |
| function verifyBankCardNumber(bankno) { | |
| var lastNum = bankno.substr(bankno.length - 1, 1); //取出最后一位(与luhm进行比较) | |
| var first15Num = bankno.substr(0, bankno.length - 1); //前15或18位 | |
| var newArr = new Array(); | |
| for (var i = first15Num.length - 1; i > -1; i--) { |
OlderNewer