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
@echo off | |
:start | |
cls | |
netsh interface ip show address name="Local Area Connection" | |
echo. | |
echo. | |
echo. | |
set INPUT= |
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 <ESP8266WiFi.h> | |
#include <PubSubClient.h> | |
#include <Adafruit_NeoPixel.h> | |
#define NEO_PIN D1 | |
#define NUM_LEDS 19 | |
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
0 1 2 3 4 5 6 7 8 | |
12345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
M1 The Crab Nebula Supernova remnant Taurus | |
M2 Globular cluster Aquarius | |
M3 Globular cluster Canes Venatici | |
M4 Globular cluster Scorpius | |
M5 Globular cluster Serpens Caput | |
M6 Butterfly Cluster Open cluster Scorpius | |
M7 Ptolemy Cluster Open cluster Scorpius | |
M8 The Lagoon Nebula Starforming nebula Sagittarius |
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
var request = require('request'); | |
function lifx(accessToken) { | |
this.accessToken = accessToken; | |
} | |
lifx.prototype.listLights = function(selector, cb) { | |
var url = 'https://api.lifx.com/v1/lights/' + selector; | |
if (cb == null) |
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
import requests | |
def getWeather(city): | |
query = "select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22"+ city +"%22)%20and%20u%3D%27c%27&format=json" | |
url = "https://query.yahooapis.com/v1/public/yql?q=" + query | |
r=requests.get(url) | |
if r.json()['query']['results']!=None: | |
results = r.json()['query']['results']['channel'] | |
foundcity = results['location']['city'] | |
forecast = results['item']['forecast'] |