- 实词:名词、动词、形容词、状态词、区别词、数词、量词、代词
- 虚词:副词、介词、连词、助词、拟声词、叹词。
n 名词
nr 人名
| function handleImage(message, replyToken) { | |
| axios.get(`https://api-data.line.me/v2/bot/message/${message.id}/content`, { | |
| headers: { | |
| 'Authorization': `Bearer ${process.env.CHANNEL_ACCESS_TOKEN}` | |
| }, responseType: 'stream' | |
| }).then((res) => { | |
| const tmp = tempfile(); | |
| const writer = fs.createWriteStream(tmp); | |
| res.data.pipe(writer); | |
| writer.on('finish', () => { |
| #!/usr/bin/env bash | |
| # gcloud config set project {PROJECTID} | |
| DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| HOSTNAME=asia.gcr.io | |
| PROJECTID=${GCP_PROJECT} | |
| IMAGE=${IMAGE_NAME} | |
| TAG=`git rev-parse --short=7 HEAD` | |
| cd "${DIR}/.." |
| apiVersion: v1 | |
| kind : Service | |
| metadata: | |
| name: nginx | |
| labels: | |
| name: nginx-svc | |
| kubernetes.io/name: "Nginx" | |
| spec: | |
| selector: | |
| app: nginx |
| FROM golang:1.8-alpine as builder | |
| RUN apk update && apk upgrade && \ | |
| apk add --no-cache git | |
| RUN go get -u sourcegraph.com/sourcegraph/appdash/cmd/... | |
| FROM alpine:3.5 | |
| RUN apk --no-cache add ca-certificates | |
| WORKDIR / |
| apiVersion: v1 | |
| kind : Service | |
| metadata: | |
| name: prometheus-svc | |
| labels: | |
| name: prometheus-svc | |
| kubernetes.io/name: "Prometheus" | |
| spec: | |
| selector: | |
| app: prometheus |
| /* | |
| * A simple libpng example program | |
| * http://zarb.org/~gc/html/libpng.html | |
| * | |
| * Modified by Yoshimasa Niwa to make it much simpler | |
| * and support all defined color_type. | |
| * | |
| * To build, use the next instruction on OS X. | |
| * $ brew install libpng | |
| * $ clang -lz -lpng15 libpng_test.c |
| // TestRMsvrSuccess test success case, this can't fail | |
| func (s *FailTestSuite) TestRMsvrSuccess() { | |
| err := StartResourceMgr(s.chErr, config.Config.QueueSize, config.Config.RMServerAddr, config.Config.QueuedTaskTTL) | |
| assert.NoError(s.T(), err) | |
| var conn *grpc.ClientConn | |
| for ts := 250; ts <= 1000; ts += 250 { | |
| time.Sleep(time.Duration(ts) * time.Millisecond) | |
| conn, err = grpc.Dial(config.Config.RMServerAddr, grpc.WithInsecure(), grpc.WithTimeout(5*time.Second)) |