Skip to content

Instantly share code, notes, and snippets.

View arcosx's full-sized avatar
🌍
Remote

arcosx arcosx

🌍
Remote
View GitHub Profile
@arcosx
arcosx / demo.py
Created February 5, 2019 15:46
函数计算压缩文件并上传到OSS
import os
import oss2
import zipfile
import shutil
import time
def handler(event, context):
creds = context.credentials
auth = oss2.StsAuth(creds.accessKeyId, creds.accessKeySecret, creds.securityToken)
bucket = oss2.Bucket(auth, 'your endpoint', 'your buecket name')
import json
import pprint
from asyncio import sleep
import requests
from openpyxl import Workbook
wb = Workbook()
dicts = {'七个小矮人': 'https://api.17disney.com/wait-times-service/wait-times/attractions/shanghai/attSevenDwarfsMineTrain',
'探险家独木舟': 'https://api.17disney.com/wait-times-service/wait-times/attractions/shanghai/attExplorerCanoes',
@arcosx
arcosx / A simple login verification for my classmate Yun.md
Last active January 10, 2018 08:50
A simple Login which use REST API by Nodejs

A simple login verification for my classmate Yun

Source Code

Nodejs 8.4.0

Packets 1. Express 2. body-parser

const express = require('express')
const bodyParser = require('body-parser')
const app = express()