This file contains 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 ( | |
"strconv" | |
"github.com/gin-gonic/gin" | |
"github.com/sony/sonyflake" | |
) | |
var ( |
This file contains 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 <Servo.h> | |
Servo servo; | |
int pos = 0; | |
void setup() { | |
Serial.begin(9600); | |
pinMode(A0, INPUT); | |
servo.attach(9); |
This file contains 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
using System.Net; | |
public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log, IEnumerable<AirData> documents) | |
{ | |
List<AirData> docsToReturn = new List<AirData>(); | |
string numberOfDocs = req.GetQueryNameValuePairs() | |
.FirstOrDefault(q => string.Compare(q.Key, "fetchno", true) == 0) | |
.Value; | |
This file contains 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
using System.Net; | |
public static HttpResponseMessage Run(HttpRequestMessage req, out object airQualityDocument, TraceWriter log) | |
{ | |
string latitude = req.GetQueryNameValuePairs() | |
.FirstOrDefault(q => string.Compare(q.Key, "latitude", true) == 0) | |
.Value; | |
string longitude = req.GetQueryNameValuePairs() | |
.FirstOrDefault(q => string.Compare(q.Key, "longitude", true) == 0) |
This file contains 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 <b64.h> | |
#include <ESP8266HTTPClient.h> | |
#include <ESP8266WiFi.h> | |
#include <ESP8266WiFiMulti.h> | |
#include <SoftwareSerial.h> | |
#include <TinyGPS.h> | |
static const int RXPin = 12, TXPin = 13; //RX and TX pins for GPS | |
TinyGPS gps; |
This file contains 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
int LED_PIN = 9; | |
void setup() { | |
// put your setup code here, to run once: | |
pinMode(LED_PIN, OUTPUT); | |
digitalWrite(LED_PIN, HIGH); | |
Serial.begin(9600); | |
Serial.println("* * * * * * * * * *"); | |
Serial.println("* LED I/O *"); | |
Serial.println("* Program *"); |