Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Ana Laura Diedrichs anadiedrichs

🎯
Focusing
Block or report user

Report or block anadiedrichs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@anadiedrichs
anadiedrichs / saveImagesFromPlotly.R
Created Mar 9, 2018
Save Locally Generated Plot Locally As PNG/JPG + save png image from plotly or ggplot object
View saveImagesFromPlotly.R
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(
@anadiedrichs
anadiedrichs / bnlearn-continuous-prediction.ipynb
Created Sep 26, 2017
bnlearn-prediction-continuous.ipynb
View bnlearn-continuous-prediction.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@twatteynelinear
twatteynelinear / oap_client.json
Last active Nov 8, 2019
A Node-RED Dashboard-based OAP Client for your SmartMesh IP network!
View oap_client.json
[{"id":"8b29696e.959e28","type":"subflow","name":"PUT","info":"","in":[{"x":142,"y":208.00000762939453,"wires":[{"id":"27105310.8933fc"}]}],"out":[{"x":844.9999847412109,"y":215.00001525878906,"wires":[{"id":"c66ac42c.728748","port":0}]}]},{"id":"46f0a800.bf7d08","type":"http request","z":"8b29696e.959e28","name":"","method":"PUT","ret":"obj","url":"","tls":"","x":485.8957977294922,"y":216.88888549804688,"wires":[["c66ac42c.728748","b6e9f36a.260c7"]]},{"id":"27105310.8933fc","type":"function","z":"8b29696e.959e28","name":"format request","func":"msg.url = \"http://127.0.0.1:8080/api/v1/oap/\"+global.get('mote')+msg.topic\nreturn msg\n","outputs":1,"noerr":0,"x":296.90281677246094,"y":215.57626342773438,"wires":[["46f0a800.bf7d08","b6e9f36a.260c7"]]},{"id":"c66ac42c.728748","type":"change","z":"8b29696e.959e28","name":"","rules":[{"t":"move","p":"statusCode","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":688.6076507568359,"y":219.22222900390625,"wires":[
@snewhouse
snewhouse / install.exploratory.linux.sh
Created Sep 13, 2016
Exploratory 1.9.0.1 Linux Ubuntu 16.04 Install Script. Run with ordinary user!
View install.exploratory.linux.sh
# Exploratory 1.9.0.1 Linux Ubuntu 16.04 Install Script. Run with ordinary user!
sudo echo "deb http://cran.rstudio.com/bin/linux/ubuntu xenial/" | sudo tee -a /etc/apt/sources.list
gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9
gpg -a --export E084DAB9 | sudo apt-key add -
sudo apt-get update
sudo apt-get install r-base r-base-dev git libssl-dev libpq-dev libxml2-dev libcurl4-openssl-dev libsodium-dev libmariadb-client-lgpl-dev libsasl2-dev
mkdir ~/.exploratory
mkdir ~/.exploratory/R
@jacobrosenthal
jacobrosenthal / .travis.yml
Created Apr 1, 2015
Arduino command line travis testing
View .travis.yml
# Test build your arduino libraries with travis and the official arduino tool chain
# assumes directory structure
# /NullStream
# NullStream.h
# NullStream.cpp
# examples
# NullStreamExample
# NullStreamExample.ino
You can’t perform that action at this time.