This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% | |
% Copyright (c) 2018, Pascal Wagler; | |
% Copyright (c) 2014--2018, John MacFarlane | |
% | |
% All rights reserved. | |
% | |
% Redistribution and use in source and binary forms, with or without | |
% modification, are permitted provided that the following conditions | |
% are met: | |
% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all : latex pdf html odt cat | |
install : | |
#wget -c https://raw.githubusercontent.com/Wandmalfarbe/pandoc-latex-template/master/eisvogel.tex --output-document=eisvogel.latex | |
wget -c https://gist.githubusercontent.com/Ynn/7907470ea0e68c909ba0a51752a9f308/raw/80c97266638c796decea342e6392207c5883f036/eisvogel.latex | |
mkdir -p pandoc | |
wget -c https://github.com/jgm/pandoc/releases/download/2.1.2/pandoc-2.1.2-linux.tar.gz | |
tar xvzf pandoc-2.1.2-linux.tar.gz --strip-components 1 -C ./pandoc/ | |
sudo pip install pandoc-fignos |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Arduino.h> | |
#ifdef ESP8266 | |
extern "C" { | |
#include "user_interface.h" //to gain access to promiscuous mode | |
} | |
#endif | |
#include <ESP8266WiFi.h> | |
#include <WiFiClient.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"encoding/xml" | |
"strconv" | |
"time" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"strings" | |
xj "github.com/basgys/goxml2json" | |
"net/http" | |
"io/ioutil" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
import "encoding/xml" | |
import "net/http" | |
import "io/ioutil" | |
type ObixReal struct { | |
Value float32 `xml:"val,attr"` | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias rcl='egrep -v "(^[[:blank:]]*#)|(^[[:blank:]]*$)"' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
typedef unsigned char uint8_t; | |
void printBits(uint8_t num){ | |
int size = sizeof(uint8_t); | |
unsigned int maxPow = 1<<(size*8-1); | |
int i=0,j; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Arduino.h> | |
#include <uECC.h> | |
#include "Crypto.h" | |
#define NELEMS(x) (sizeof(x) / sizeof((x)[0])) | |
extern "C" { | |
static int RNG(uint8_t *dest, unsigned size) { | |
// Use the least-significant bits from the ADC for an unconnected pin (or connected to a source of |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Retrieve temperature from lm35 and publish it to sensor/temperature/1 | |
Use cloudmqtt | |
Requires : PubSubClient and ESP8266WiFi | |
Licence : MIT | |
Inpired from : http://www.projetsdiy.fr/esp8266-dht22-mqtt-projet-objet-connecte/ | |
*/ | |
#include <Arduino.h> |