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
openapi: 3.0.0 | |
servers: | |
- url: //petstore.swagger.io/v2 | |
description: Default server | |
- url: //petstore.swagger.io/sandbox | |
description: Sandbox server | |
info: | |
description: | | |
This is a sample server Petstore server. | |
You can find out more about Swagger at |
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 time | |
from vika import Vika | |
API_TOKEN = '你的 api token' | |
DST_ID = '存储图片的表id' | |
file_dir = '/Users/mayne/Desktop/demo' # 需要上图片的文件路径 | |
vika = Vika(API_TOKEN) |
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
const axios = require('axios') | |
const { URLSearchParams } = require('url') | |
const getFullBlockId = (blockId) => { | |
if (typeof blockId !== 'string') { | |
throw Error(`blockId: ${typeof blockId} must be string`) | |
} | |
if (blockId.match("^[a-zA-Z0-9]+$")) { | |
return blockId.substr(0, 8) + "-" | |
+ blockId.substr(8, 4) + "-" |
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
/** | |
* Welcome to Cloudflare Workers! This is your first worker. | |
* | |
* - Run "npm run dev" in your terminal to start a development server | |
* - Open a browser tab at http://localhost:8787/ to see your worker in action | |
* - Run "npm run deploy" to publish your worker | |
* | |
* Learn more at https://developers.cloudflare.com/workers/ | |
*/ |
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 uuid | |
import requests | |
BASE_URL = "http://localhost:3333" | |
class DataSpace: | |
def __init__(self, space_id): | |
self.space_id = space_id |
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
const MY_DOMAIN = "agodrich.com" | |
const START_PAGE = "https://www.notion.so/gatsby-starter-notion-2c5e3d685aa341088d4cd8daca52fcc2" | |
const DISQUS_SHORTNAME = "agodrich" | |
addEventListener('fetch', event => { | |
event.respondWith(fetchAndApply(event.request)) | |
}) | |
const corsHeaders = { | |
"Access-Control-Allow-Origin": "*", |
OlderNewer