请求地址 [GET] https://bauy3v6kel.execute-api.cn-northwest-1.amazonaws.com.cn/getCacheHitRate 请求参数:
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| date | str, YYYY-MM-DD | Y | 日期 |
| timeStart | str, hh:mm:ss | Y | 开始时间 |
| timeEnd | str, hh:mm:ss | Y | 结束时间 |
响应参数:
请求地址 [GET] https://bauy3v6kel.execute-api.cn-northwest-1.amazonaws.com.cn/getCacheHitRate 请求参数:
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| date | str, YYYY-MM-DD | Y | 日期 |
| timeStart | str, hh:mm:ss | Y | 开始时间 |
| timeEnd | str, hh:mm:ss | Y | 结束时间 |
响应参数:
| class LowPassFilter{ | |
| convolution(pixels, weights, width, height) { | |
| const side = Math.round(Math.sqrt(weights.length)); | |
| const halfSide = Math.floor(side / 2); | |
| const src = pixels; | |
| const canvasWidth = width; | |
| const canvasHeight = height; | |
| const outputData = []; | |
| for (let y = 0; y < canvasHeight; y++) { | |
| for (let x = 0; x < canvasWidth; x++) { |
| /* | |
| * Easing Functions - inspired from http://gizma.com/easing/ | |
| * only considering the t value for the range [0, 1] => [0, 1] | |
| */ | |
| EasingFunctions = { | |
| // no easing, no acceleration | |
| linear: function (t) { return t }, | |
| // accelerating from zero velocity | |
| easeInQuad: function (t) { return t*t }, | |
| // decelerating to zero velocity |
| <?php | |
| // APPID (开户邮件中可查看) | |
| define("APP_ID", "YOUR_APP_ID"); | |
| // 商户号 (开户邮件中可查看) | |
| define("MCH_ID", "YOUR_MCH_ID"); | |
| // 商户支付密钥 (https://pay.weixin.qq.com/index.php/account/api_cert) | |
| define("APP_KEY", "YOUR_APP_KEY"); | |
| // get prepay id | |
| $prepay_id = generatePrepayId(APP_ID, MCH_ID); | |
| // re-sign it |
| for (var i = 0; i < 1024 * 1024; i++) { | |
| process.nextTick(function () { Math.sqrt(i) } ) | |
| } |