Skip to content

Instantly share code, notes, and snippets.

View anadiedrichs's full-sized avatar
🎯
Focusing

Ana Laura Diedrichs anadiedrichs

🎯
Focusing
View GitHub Profile
library(plotly)
fig <- plot_ly(data = iris, x = ~Sepal.Length, y = ~Petal.Length)
fig
@anadiedrichs
anadiedrichs / backend.txt
Created November 4, 2019 16:20
wireless wine and peach backend
MOTES--------------| RASPBERRY PY -----------------------------------------------------------------------|| -------SERVER side -------------------------------------------------||
+SmartMesh SDK library+ +-------------+ ------------> sqlite db
+-------------+ | +------------> | NODE RED |
| SmartMeshIP | | +-------------+ |HTTP:localhost +----------- ------MQTT 8883 QoS 2 (binary data) ------> mosquito server ---- telegraf --- influxdb --- grafana
| Manager +<------------>+ JsonManager | |
| | API port | +-------------+ |
+-------------+ | |
+---------------------+
@anadiedrichs
anadiedrichs / saveImagesFromPlotly.R
Created March 9, 2018 21:14
Save Locally Generated Plot Locally As PNG/JPG + save png image from plotly or ggplot object
library(plotly)
library(webshot)
#uncomment the following to run the first time for installing
# webshot::install_phantomjs()
library(htmltools)
# source https://github.com/ropensci/plotly/issues/311
export <- function(p, file = "plotly.png", ...) {
if (system.file(package = "webshot") == "") {
stop(
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@anadiedrichs
anadiedrichs / bnlearn-continuous-prediction.ipynb
Created September 26, 2017 23:08
bnlearn-prediction-continuous.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@anadiedrichs
anadiedrichs / lstm-time-series-preprocessing.ipynb
Created April 27, 2017 13:32
lstm keras time series preprocessing error
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.