JSON.stringify({x: 1234567890n}) // throw!
You can custom it
name: CI & CD | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- package.json | |
jobs: | |
Build-and-Publish: | |
runs-on: ubuntu-latest |
param( | |
[Int] $port | |
) | |
$URL = "http://127.0.0.1:$port" | |
[environment]::SetEnvironmentVariable('HTTP_PROXY', $URL, "Machine") | |
[environment]::SetEnvironmentVariable('HTTPS_PROXY', $URL, "Machine") | |
git config --global http.proxy $URL | |
git config --global https.proxy $URL |
// Backend | |
import formidable from 'formidable'; | |
export const config = { | |
api: { | |
bodyParser: false, | |
}, | |
}; | |
export default async (req, res) => { |
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
环境:shadowsocks、windows | |
本地ss端口设置(这里1080) | |
cmd命令行:(不用socks5)(临时设置)(也可放置环境变量) | |
set http_proxy=http://127.0.0.1:1080 | |
set https_proxy=http://127.0.0.1:1080 | |
ps:一定要用cmd命令行,千万别用powershell !!! | |
简易测试命令:curl https://www.google.com(别用ping) |
npm set registry https://registry.npm.taobao.org && \ | |
npm set disturl https://npm.taobao.org/dist && \ | |
npm set sass_binary_site https://npm.taobao.org/mirrors/node-sass && \ | |
npm set electron_mirror https://npm.taobao.org/mirrors/electron/ && \ | |
npm set puppeteer_download_host https://storage.googleapis.com.cnpmjs.org && \ | |
npm set chromedriver_cdnurl https://npm.taobao.org/mirrors/chromedriver && \ | |
npm set operadriver_cdnurl https://npm.taobao.org/mirrors/operadriver && \ | |
npm set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs && \ | |
npm set selenium_cdnurl https://npm.taobao.org/mirrors/selenium && \ | |
npm set node_inspector_cdnurl https://npm.taobao.org/mirrors/node-inspector && \ |
<script src="https://cdn.bootcss.com/babel-polyfill/6.26.0/polyfill.min.js"></script> | |
<script src="https://cdn.bootcss.com/qrcode-generator/1.4.0/qrcode.js"></script> | |
<form> | |
<fieldset> | |
<legend>QRCode Post</legend> | |
<ol> | |
<li><label> | |
Load an image | |
<input type="file" accept="image/*" |