Skip to content

Instantly share code, notes, and snippets.

View chrylarson's full-sized avatar

Chris R. Larson chrylarson

View GitHub Profile
@chrylarson
chrylarson / Websocket
Last active January 14, 2022 17:15
example of web socket in React.js
## Scala
val topic = "raw"
val kafkaSource: Source[ConsumerRecord[String, String], Consumer.Control] = // listen to our topic with our settings, until the program is exited
Consumer.plainSource(consumerSettings, Subscriptions.topics(topic))
...
val webSocketWriteLogic: Source[Message, NotUsed] =
@chrylarson
chrylarson / Build Iotivity for Arduino using scons
Last active June 11, 2016 12:59
How to setup Iotivity on Ubuntu 14.04 to build for arduino using scons
Setup your environment and then clone the Iotivity git repo follow the instructions to the beginning of step 5
https://www.iotivity.org/documentation/linux/getting-started
$ sudo apt-get install libboost-dev libboost-program-options-dev libexpat1-dev libboost-thread-dev uuid-dev
$ sudo apt-get install dos2unix
cd to Iotivity root directory
$ scons TARGET_OS=arduino TARGET_ARCH=avr BOARD=megaADK