Coder Social home page Coder Social logo

horse_thatbooks's Introduction

== horse_thatbooks ==

This is the source code for @horse_thatbooks. Created at THATCamp CHNM 2012.

In a nutshell, it does the following:

  • Pulls the latest tweets with the #thatcamp hashtag
  • Stores them in its tweet cache (tweets.txt, which holds up to 500 tweets)
  • Runs them through a Markov chain process to create some new text
  • Adds the #thatcamp hashtag, and sends the tweet

Thanks to the following libraries:

== How to use ==

  1. Download this repo. Note that the external libraries listed above are linked as submodules. If you're running a git clone, you can fetch them with

     git submodule init
     git submodule update
    

    If you've downloaded the zip file from Github, you'll have to get the libraries yourself (from the links above) and place the files in their respective directories (lib/php-twitteroauth and lib/MarkovBigram)

  2. Create a file called tweets.txt

  3. Copy config.sample.php to config.php

  4. Get creds from Twitter

  5. Put those creds in config.php

  6. Set a cronjob to call php /path/to/twitter.php

  7. ???

  8. Profit

horse_thatbooks's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.