-
Create a new virtual env
virtualenv venv
-
Activate it
vtualenv venv/bin/activate
-
Install ipykernel
pip install ipykernel
-
Add the kernel to the list
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 slack_bolt import App | |
import time | |
app = App(token="") | |
resp = app.client.users_conversations() | |
channel_ids_to_skip = [] |
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
""" | |
Compiled, 2021 by Niraj Fonseka | |
Made available under GNU GENERAL PUBLIC LICENSE | |
# Modified Python I2C library for Raspberry Pi | |
# original https://gist.github.com/DenisFromHR/cc863375a6e19dce359d by DenisFromHR | |
# 2021-08-16 | |
""" |
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 React, { useState, useEffect } from 'react'; | |
import './App.css'; | |
import { SensorRequest } from "./sensorpb/sensor_pb" | |
import { SensorClient} from "./sensorpb/sensor_grpc_web_pb" | |
var client = new SensorClient('http://localhost:8000') | |
function App() { | |
const [temp, setTemp] = useState(-9999); | |
const [humidity , setHumidity] = useState(-99999) |
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 React, { useState, useEffect } from 'react'; | |
import './App.css'; | |
import { SensorRequest } from "./sensorpb/sensor_pb" | |
import { SensorClient} from "./sensorpb/sensor_grpc_web_pb" | |
var client = new SensorClient('http://localhost:8000') | |
function App() { | |
const [temp, setTemp] = useState(-9999); | |
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 { SensorRequest , SensorResponse } from "./sensorpb/sensor_pb" | |
import { SensorClient} from "./sensorpb/sensor_grpc_web_pb" | |
var client = new SensorClient('http://localhost:8000') |
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 envoyproxy/envoy:v1.12.2 | |
COPY ./envoy.yaml /etc/envoy/envoy.yaml | |
CMD /usr/local/bin/envoy -c /etc/envoy/envoy.yaml |
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
admin: | |
access_log_path: /tmp/admin_access.log | |
address: | |
socket_address: { address: 0.0.0.0, port_value: 9901 } | |
static_resources: | |
listeners: | |
- name: listener_0 | |
address: | |
socket_address: { address: 0.0.0.0, port_value: 8000 } |
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 React from 'react'; | |
import './App.css'; | |
function App() { | |
return ( | |
); | |
} | |
export default App; |
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
protoc sensor.proto \ | |
--js_out=import_style=commonjs,binary:./../js-client/src/sensorpb \ | |
--grpc-web_out=import_style=commonjs,mode=grpcwebtext:./../js-client/src/sensorpb |
NewerOlder