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 __future__ import print_function | |
import os | |
import time | |
import paho.mqtt.client as mqtt | |
from paho.mqtt.client import MQTT_ERR_SUCCESS, MQTT_ERR_NO_CONN | |
DEVICES_PATH = "/sys/bus/w1/devices" |
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
# An example global gitignore file | |
# | |
# Place a copy if this at ~/.gitignore_global | |
# Run `git config --global core.excludesfile ~/.gitignore_global` | |
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
station | mean_temp | |
---|---|---|
Abha | 18.0 | |
Abidjan | 26.0 | |
Abéché | 29.4 | |
Accra | 26.4 | |
Addis Ababa | 16.0 | |
Adelaide | 17.3 | |
Aden | 29.1 | |
Ahvaz | 25.4 | |
Albuquerque | 14.0 |
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 os | |
import subprocess | |
import time | |
import socket | |
DB_IS_DRIVER = os.getenv('DB_IS_DRIVER') | |
DB_DRIVER_IP = os.getenv('DB_DRIVER_IP') | |
if DB_IS_DRIVER == "TRUE": | |
print("This node is the Dask scheduler.") |
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: "3.9" | |
services: | |
rapids: | |
image: rapidsai/rapidsai:0.18-cuda11.0-runtime-ubuntu16.04-py3.8 | |
ports: | |
- "8888:8888" # Jupyter | |
- "8786:8786" # Dask communication | |
- "8787:8787" # Dask dashboard |
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 apache_beam as beam | |
from apache_beam.options.pipeline_options import PipelineOptions | |
from apache_beam.runners.dask.dask_runner import DaskRunner | |
from dask.distributed import Client, performance_report | |
class NoopDoFn(beam.DoFn): | |
def process(self, item): | |
import time | |
time.sleep(0.1) |
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 warnings | |
import time | |
from contextlib import contextmanager | |
import apache_beam as beam | |
from apache_beam.options.pipeline_options import PipelineOptions | |
from apache_beam.runners.dask.dask_runner import DaskRunner | |
from dask.distributed import Client | |
from distributed.versions import VersionMismatchWarning |
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: ServiceAccount | |
metadata: | |
name: jovyan | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: Role | |
metadata: | |
name: jovyan | |
rules: |
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: kubernetes.dask.org/v1 | |
kind: DaskCluster | |
metadata: | |
name: demo | |
spec: | |
worker: | |
replicas: 2 | |
spec: | |
containers: | |
- name: worker |
NewerOlder