Skip to content

Instantly share code, notes, and snippets.

View anadiedrichs's full-sized avatar
🎯
Focusing

Ana Laura Diedrichs anadiedrichs

🎯
Focusing
View GitHub Profile
@djnavarro
djnavarro / voronoi_tree_02.R
Last active March 4, 2021 04:34
autumnal voronoi tree
library(flametree)
library(voronoise)
library(ambient)
library(scico)
library(dplyr)
theme_mono <- voronoise:::theme_mono
ft <- flametree_grow(
seed = 333,
@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(
@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.
@twatteyneadi
twatteyneadi / oap_client.json
Last active November 8, 2019 14:16
A Node-RED Dashboard-based OAP Client for your SmartMesh IP network!
[{"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 September 13, 2016 16:03
Exploratory 1.9.0.1 Linux Ubuntu 16.04 Install Script. Run with ordinary user!
# 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 April 1, 2015 07:04
Arduino command line travis testing
# 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