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 R | |
| sudo apt-get update | |
| sudo apt-get install gdebi libxml2-dev libssl-dev libcurl4-openssl-dev libopenblas-dev r-base r-base-dev | |
| # Install RStudio | |
| cd ~/Downloads | |
| wget https://download1.rstudio.org/rstudio-xenial-1.1.383-amd64.deb | |
| sudo gdebi rstudio-xenial-1.1.383-amd64.deb | |
| printf '\nexport QT_STYLE_OVERRIDE=gtk\n' | sudo tee -a ~/.profile |
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
| class MyStreamListener(tweepy.StreamListener): | |
| def __init__(self, api=None): | |
| super(MyStreamListener, self).__init__() | |
| self.num_tweets = 0 | |
| self.file = open("tweets.txt", "w") | |
| def on_status(self, status): | |
| tweet = status._json | |
| self.file.write( json.dumps(tweet) + '\n' ) | |
| self.num_tweets += 1 |
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
| /* | |
| Earned Badges | |
| This table contains badges earned by a user, including the most recent date achieved, the type, the name, the # of energy points earned, and the activity earned from. | |
| Collected by: https://www.khanacademy.org/profile/chopsor/ | |
| */ | |
| CREATE TABLE badges ( | |
| date TEXT, | |
| badge_type TEXT, | |
| badge_name TEXT, |
NewerOlder