http://www.esp8266.com/wiki/doku.php?id=getting-started-with-the-esp8266
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
install.packages('ggplot2') | |
require(ggplot2) | |
df <- data.frame(Sentiment = c('Positive', 'Negative'), Count = c(174, 115)) | |
ggplot(df, aes(Sentiment, Count)) + geom_bar(stat="identity") |
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
# Dependencies: | |
# NLTK | |
# WordCloud | |
# Scikit-learn | |
# Matplotlib | |
# Scipy | |
# Python version: 2.7 | |
%matplotlib inline |
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
status_updates = ['JOIN ME FOR A FEW MINUTES IN PANAMA CITY BEACH, FLORIDA. This is a MOVEMENT like never seen before- and will never be seen again. This is our last chance- lets MAKE AMERICA SAFE AND GREAT AGAIN!', 'I would like to wish everyone who is observing the solemn and holy day of Yom Kippur an inspirational day of reflection. We hope that everyone’s prayers are answered and that we all have a year of peace, security, good health, prosperity and blessings. -DJT', 'JOIN ME FOR A FEW MINUTES IN PANAMA CITY BEACH, FLORIDA. This is a MOVEMENT like never seen before- and will never be seen again. This is our last chance- lets MAKE AMERICA SAFE AND GREAT AGAIN!', 'I would like to wish everyone who is observing the solemn and holy day of Yom Kippur an inspirational day of reflection. We hope that everyone’s prayers are answered and that we all have a year of peace, security, good health, prosperity and blessings. -DJT', 'Great morning in San Antonio, Texas - GREAT afternoon in Dallas, Texas. Departing now |
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 pandas as pd | |
import geoip2.database | |
mmdb_path = 'C:\\Users\\Manash\\Downloads\\Compressed\\GeoLite2-Country.mmdb\\GeoLite2-Country.mmdb' | |
ipaddress_path = 'C:\\Users\\Manash\\Downloads\\IP_Address.csv' | |
ipdf = pd.read_csv(ipaddress_path) | |
reader = geoip2.database.Reader(mmdb_path) | |
for ip in ipdf['IP Address']: |
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
#http://stackoverflow.com/questions/26177620/how-to-execute-scrapy-shell-url-with-notebook | |
import requests | |
from scrapy.http import TextResponse | |
r = requests.get('http://stackoverflow.com/') | |
response = TextResponse(r.url, body=r.text, encoding='utf-8') |
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
x1,x2,x3,x4,x5 | |
1,2,3,4,5 | |
2,3,4,5,6 | |
4,5,6,6,7 |
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
require('foreign') | |
spss_data <- read.spss('file.sav', use.value.labels = TRUE) | |
write.csv(spss_data, 'out_file.csv') |

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
#define BAUD 9600 | |
class LM35 { | |
private: | |
byte pin; | |
unsigned int reading; | |
public: | |
LM35(byte pin){ | |
pin = pin; |