View test.js
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
var test = "hello"; |
View docker-compose.yml
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
version: '2' | |
services: | |
load-balancer: | |
image: nginx | |
ports: ["80:80"] | |
volumes: ["./example.conf:/etc/nginx/conf.d/example.conf:ro"] | |
web-server: |
View docker-compose.yml
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
version: '2' | |
services: | |
registry: | |
image: registry:2 | |
ports: | |
- "127.0.0.1:5500:5000" | |
environment: | |
REGISTRY_STORAGE_DELETE_ENABLED: 'true' |
View docker-compose.yml
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
registry: | |
image: registry:2 | |
ports: | |
- 127.0.0.1:5500:5000 | |
environment: | |
REGISTRY_STORAGE_DELETE_ENABLED: 'true' | |
REGISTRY_STORAGE_S3_ACCESSKEY: ${AWS_ACCESS_KEY} | |
REGISTRY_STORAGE_S3_SECRETKEY: ${AWS_SECRET_KEY} | |
volumes: | |
["./config.yml:/etc/docker/registry/config.yml"] |
View script.sh
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
# Run those commands: | |
conda update conda | |
conda update anaconda | |
conda update python | |
conda update –all | |
conda create –name tf-gpu | |
cmd | |
activate tf-gpu | |
conda install -c aaronzs tensorflow-gpu #(note: this channel proposes a recent Tensorflow binary for windows) | |
conda install -c anaconda cudatoolkit |
View docker-compose.yml
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
version: '2' | |
services: | |
worker: | |
build: . | |
environment: | |
PG_DATABASE: ${PG_DATABASE} | |
PG_USER: ${PG_USER} | |
PG_PASSWORD: ${PG_PASSWORD} | |
volumes: |
View docker-compose.yml
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
version: '2' | |
services: | |
#RabbitMQ broker, for Celery | |
rabbit: | |
hostname: rabbit | |
image: rabbitmq:3.7.3 | |
environment: | |
- RABBITMQ_DEFAULT_USER=${RABBITMQ_DEFAULT_USER} | |
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_DEFAULT_PASS} |
View docker-compose.yml
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
version: '2' | |
services: | |
nginx-front: | |
image: nginx:stable | |
ports: | |
- "3000:80" | |
volumes: | |
- ./nginx-front.conf:/etc/nginx/nginx.conf | |
links: |
View test.py
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 cv2 | |
import numpy as np | |
import math | |
cx = 88 #principal point x coord | |
cy = 109 #principal point y coord | |
w = 178 #image width | |
h = 218 #image height | |
near = 10 #near plane | |
far = 20 #far plane |
View docker-compose.yml
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
version: '2' | |
services: | |
nginx-front: | |
image: nginx:stable | |
ports: | |
- "3000:80" | |
volumes: | |
- ./nginx-front.conf:/etc/nginx/nginx.conf | |
links: |
OlderNewer