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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Excel = Microsoft.Office.Interop.Excel; | |
namespace ExcelTest | |
{ |
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 sample.sample; | |
import java.io.*; | |
import java.net.URI; | |
import java.net.URISyntaxException; | |
import java.security.InvalidKeyException; | |
import java.util.Base64; | |
import java.util.Calendar; | |
import java.util.GregorianCalendar; | |
import java.util.TimeZone; | |
import java.util.Date; |
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 sample.sample; | |
import java.io.*; | |
import java.net.URI; | |
import java.net.URISyntaxException; | |
import java.security.InvalidKeyException; | |
import java.util.Calendar; | |
import java.util.GregorianCalendar; | |
import java.util.TimeZone; | |
import java.util.Date; | |
import java.util.EnumSet; |
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 Microsoft.VisualStudio.TestTools.UnitTesting; | |
using OpenQA.Selenium; | |
using OpenQA.Selenium.Chrome; | |
using OpenQA.Selenium.PhantomJS; | |
namespace WordCloudGenerator.SeleniumTests | |
{ | |
[TestClass] | |
public class HeadlessSeleniumTests | |
{ |
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
/** | |
* Module dependencies. | |
*/ | |
var express = require('express'); | |
var http = require('http'); | |
var path = require('path'); | |
var app = express(); |
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 <ESP8266WiFi.h> | |
#include <DHT.h> | |
#define DHTPIN 2 | |
#define DHTTYPE DHT11 | |
const char* ssid = "<YOURSSID>"; | |
const char* password = "<YOURPASSWORD>"; | |
String KEY = "<YOUTTHINGSPEAKKEY>"; |
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
print("Bootup starting") | |
print("Connecting to wifi") | |
wifi.setmode(wifi.STATION) | |
wifi.sta.config("<YourSSID>","<YourPassword>") | |
wifi.sta.connect() | |
tmr.delay(3000000) -- wait 1,000,000 us = 1 second | |
print(wifi.sta.status()) | |
print(wifi.sta.getip()) | |
print("Connected to wifi") | |
print("Sleeping for 10 seconds") |
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
app.get('/sensorData', function (req, res) { | |
var temp = req.query.temp; | |
var humidity = req.query.humidity; | |
var deviceId = req.query.deviceId; | |
var client = require('event-hub-client').restClient( | |
config.namespace, | |
config.hub, | |
config.sharedAccessKeyName, | |
config.sharedAccessKey); |
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
print("Bootup starting") | |
print("Connecting to wifi") | |
wifi.setmode(wifi.STATION) | |
wifi.sta.config("<YOURSSID>","<YOURPASSWORD>") | |
wifi.sta.connect() | |
tmr.delay(3000000) -- wait 1,000,000 us = 1 second | |
print(wifi.sta.status()) | |
print(wifi.sta.getip()) | |
print("Connected to wifi") | |
print("Sleeping for 10 seconds") |
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
local PIN = 4 | |
local DHT= require("dht_lib") | |
DHT.read11(PIN) | |
temp = DHT.getTemperature() | |
humidity = DHT.getHumidity() | |
print("Temp:"..temp) | |
tF = (temp * 9/5) + 32 | |
print ("TempF: "..tF) |
NewerOlder