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
FROM google/dart | |
WORKDIR /app | |
ADD pubspec.* /app/ | |
RUN pub get | |
ADD . /app | |
RUN pub get --offline | |
CMD [] |
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
FROM google/dart AS dart-runtime | |
WORKDIR /app | |
ADD pubspec.* /app/ | |
RUN pub get | |
ADD bin /app/bin/ | |
ADD lib /app/lib/ | |
RUN pub get --offline | |
RUN dart2aot /app/bin/server.dart /app/server.aot |
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
FROM google/dart:2.6-dev AS dart-runtime | |
WORKDIR /app | |
ADD pubspec.* /app/ | |
RUN pub get | |
ADD bin /app/bin/ | |
ADD lib /app/lib/ | |
RUN pub get --offline | |
RUN dart2native /app/bin/server.dart -o /app/server |
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
from abc import ABC, abstractmethod | |
from datetime import timedelta | |
class A1(ABC): | |
_value = "A1" | |
def __init__(self): | |
print("A1 type at init:", type(self._value)) | |
def test_value(self): |
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
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: http-echo-service | |
spec: | |
type: NodePort | |
selector: | |
app: http-echo | |
ports: |
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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: http-echo-gpu-pod | |
labels: | |
app: http-echo | |
spec: | |
containers: | |
- name: http-echo | |
image: adaptant/http-echo |
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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: http-echo-edgetpu-pod | |
labels: | |
app: http-echo | |
spec: | |
containers: | |
- name: http-echo | |
image: adaptant/http-echo |
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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: http-echo-rpi4b-ncs2-pod | |
labels: | |
app: http-echo | |
spec: | |
containers: | |
- name: http-echo | |
image: adaptant/http-echo |
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
from edgetpu.basic import edgetpu_utils | |
version = edgetpu_utils.GetRuntimeVersion() | |
print(version) | |
all_edgetpu_paths = edgetpu_utils.ListEdgeTpuPaths(edgetpu_utils.EDGE_TPU_STATE_NONE) | |
print('Available EdgeTPU Device(s):') | |
print(''.join(all_edgetpu_paths)) |
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
FROM acceleratorbase/edgetpu-std | |
ADD devicequery.py / | |
CMD [ "python3", "devicequery.py" ] |
OlderNewer