Giter Club home page Giter Club logo

twitter_dailybuild's Introduction

self-service tweeting

any active member of IRC channel #dailybuild can post tweets from @dailybuild3 🦄😹 (except for kenster)

howto

  • clone this repo
  • edit file regular-tweet.js by assigning your tweet message to const message = "{ muh tweet content }"
  • do the mandatory voodoo to create a pull request
  • let socraticDev give a quick look and merge your submission 🏁
    • socraticDev would have to remember he needs to merge that into userTweet branch

tip: To make sure your message is well-formed (since you dont have access to Twitter API keys), locally, you can comment out the Tweet Module import statement and the last line where the message is sent by the module. Instead, you can simply console.log({your message}) and see if your message is well-formed.

Working with unit tests (Jasmine JavaScript framework)

Using unit tests to fix bugs and develop new scripts will make our lives easier!

To run all unit tests :

  1. Add a new test file (ending in *Spec.js) in the /spec directory and write some test scenarios;
  2. In terminal prompt, make sure you are located (pwd) at the root of the project;
  3. type jasmine;
  4. The tests will be ran and a result outputted to same terminal;
  5. read the test framework output.

capture of command line with jasmine

automated tweeting scripts

Almost all @dailybuild3's tweets are posted from automated scripts on a cron job. Here's a list of the scripts:

name file name description data source author example
regular tweet regular-tweet.js user can submit a tweet then open pull-requer Or pass an msg argument to this file none or command-line arg socraticDev
bofh-excuses bofh-post.sh pick a tech-related funny quote in sequential order in file .txt luxemboye capture of a bofh tweet
christmas-tweet christmas-tweet.js tweets number of days before Xmas none socraticDev capture of a xmas tweet
meme-tweet meme-tweet.js post a meme linky, meme's title and author, and dankness rating .json socraticDev capture of a meme tweet
flat-earth-tweet flat-earth-tweet.js post a picture of a flat-earth funny img and a randomly pick text .json and query Googlebot's server for the image socraticDev capture of a flat-earth-tweet
choose-major-tweet choose-major-tweet.js post about a specific college major, median income after graduation, and unemployment rate .csv socraticDev capture of a choose-major-tweet
dmv-tweet dmv-tweet.js tweets about the vanity license plate refused by dmv. stating the reason given by dmv's clerk and the actual meaning of plate given by motorist csv socraticDev capture of a dmv-tweet

twitter_dailybuild's People

Contributors

socraticdevblog avatar beelux avatar sebbu2 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.