This file contains hidden or 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
| # mongod.conf | |
| # for documentation of all options, see: | |
| # http://docs.mongodb.org/manual/reference/configuration-options/ | |
| # where to write logging data. | |
| systemLog: | |
| destination: file | |
| logAppend: true | |
| path: /var/log/mongodb/mongod.log |
This file contains hidden or 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
| javascript:(function () { | |
| const list = []; | |
| for (let e of document.getElementsByTagName('a')) { | |
| list.push(e.textContent.trim() + ',' + e.getAttribute('href').trim()); | |
| } | |
| const bom = new Uint8Array([0xEF, 0xBB, 0xBF]); | |
| const content = list.join('\n'); | |
| const blob = new Blob([bom, content], { type: 'text/csv' }); | |
| const aTag = document.createElement('a'); | |
| aTag.href = window.URL.createObjectURL(blob); |
This file contains hidden or 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
| javascript: (function () { | |
| const src = 'https://cdnjs.cloudflare.com/ajax/libs/html2canvas/0.4.1/html2canvas.js'; | |
| const script = document.createElement('script'); | |
| script.type = 'text/javascript'; | |
| script.src = src; | |
| script.onload = () => { | |
| html2canvas(document.body, { | |
| onrendered: (canvas) => { | |
| const imgageData = canvas.toDataURL('image/png'); | |
| const el = document.createElement('a'); |
This file contains hidden or 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 * as faceapi from 'face-api.js'; | |
| import { Observable } from 'rxjs'; | |
| import { switchMap } from 'rxjs/operators'; | |
| interface DetectionRequest { | |
| faceDetectionOptions: faceapi.FaceDetectionOptions; | |
| useTinyLandmarkNet?: boolean; | |
| } | |
| interface DetectionResult { |
This file contains hidden or 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
| こんな感じのディレクトリ構成になる。 | |
| . | |
| ├── package.json | |
| ├── reg.json | |
| ├── screenshots | |
| │ └── xxx.html.png | |
| ├── src | |
| │ └── main.ts | |
| ├── static |
This file contains hidden or 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
| version: '3.1' | |
| services: | |
| mongo: | |
| image: mongo:4.0.8 | |
| restart: always | |
| command: --smallfiles | |
| ports: | |
| - 27017:27017 | |
| # environment: | |
| # MONGO_INITDB_ROOT_USERNAME: root |
This file contains hidden or 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
| LOCALHOST_IP=$(ifconfig en0 | grep 'inet ' | awk -F' ' '{print $2}') |
This file contains hidden or 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
| .PHONY: all create-config-map | |
| all: | |
| create-config-map: | |
| # 設定ファイルConfigMapを作成 | |
| kubectl create configmap nats-config --from-file=nats.conf |
This file contains hidden or 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
| kubectl run busybox --image=busybox --restart=Never --tty -i |
This file contains hidden or 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
| FROM node:9.11.1-alpine | |
| WORKDIR /app | |
| COPY package.json /app | |
| COPY package-lock.json /app | |
| RUN npm install --production | |
| EXPOSE 3000 | |
| COPY src /app/src |