Skip to content

Instantly share code, notes, and snippets.

View noobnooc's full-sized avatar
💣
Confusing & Confused

Nooc noobnooc

💣
Confusing & Confused
View GitHub Profile
@noobnooc
noobnooc / cloudflare-worker-proxy.js
Last active May 1, 2024 15:04
cloudflare-worker-proxy
// Website you intended to retrieve for users.
const upstream = 'api.openai.com'
// Custom pathname for the upstream website.
const upstream_path = '/'
// Website you intended to retrieve for users using mobile devices.
const upstream_mobile = upstream
// Countries and regions where you wish to suspend your service.
@noobnooc
noobnooc / fill_form.js
Created December 23, 2018 01:35
12306 自动填表单
/* 要买票的乘客的索引号,购票页面乘客所在的位置 -1 */
let passengers = [3, 6, 7, 12, 13];
/* 座位类型 */
let seatType = '硬卧';
let passengerSeatTypes = Array.from(passengers.keys()).map(index => index + 1);
let seatTypeMap = new Map([['硬座', 1], ['软座', 2], ['硬卧', 3], ['软卧', 4]]);