Skip to content

Instantly share code, notes, and snippets.

View niltonheck's full-sized avatar
I may be slow to respond.

Nilton Heck niltonheck

I may be slow to respond.
View GitHub Profile
const https = require('https');
https.get('https://thingspeak.com/channels/584073/feed.json', (res) => {
let data = '';
res.on('data', (chunk) => {
data += chunk;
});
res.on('end', () => {
#include "ThingSpeak.h"
#include <SPI.h>
#include <Ethernet.h>
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED};
EthernetClient client;
unsigned long myChannelNumber = 584073;
const char * myWriteAPIKey = "701TW43AXK9N4770";
@niltonheck
niltonheck / docker-compose.yml
Last active July 30, 2018 13:55
Docker compose file for Hadoop 2.6 (w/ 3 nodes) + Spark
### SPARK IS OPTIONAL ###
### REMOVE OR COMMENT IF YOU DO NOT NEED IT ###
### SPARK ALSO NEED SOME CONF TO WORK CORRECTLY ###
spark-master:
image: bde2020/spark-master:1.6.2-hadoop2.6
container_name: spark-master
ports:
- "8080:8080"
- "7077:7077"
environment: