Giter Club home page Giter Club logo

getcards's Introduction

GetCards

Data scientist Chris Albon has been posting pictures of his machine learning flash cards on Twitter. This repo uses a Jupyter notebook to download them for convenient viewing.

OSX/Linux

To use this repo, you will:

  • Install Jupyter and required modules
  • Create a Twitter app to provide programmatic access to Twitter
  • Run the Jupyter notebook
  • View the png images it downloads to the repo's ml-cards directory.

Install Jupyter

Run this command to install Jupyter and required modules:

  • pip install -r module_list.txt

Create your Twitter app

This repo uses tweepy to interact with Twitter. To use it, you will create a new Twitter app and insert those credentials into Get Flashcards.ipnyb.

  1. Log into twitter
  2. Browse to https://apps.twitter.com/
  3. Click the Create New App button and define your new app. Here are some example values:
    • Name: Get Flashcards - <your name>
    • Description: Chris Albon ML Flashcard puller
    • Website: http://www.not-used.com
    • Callback URLs: `` <= blank
  4. Check the Developer Agreement and click the Create your Twitter application button.
  5. In the application details page, Select the "Keys and Access Tokens" tab.
  6. Under "Your Access Token", click the Create my access token button.

Insert your credentials

Open Get Flashcards.ipynb and locate these two lines:

    "auth = tweepy.OAuthHandler(consumer_key, consumer_secret) #Fill these in\n",
    "auth.set_access_token(access_token, access_token_secret)  #Fill these in\n",

Replace the consumer_key, consumer_secret, access_token, and access_token_secret with single-quoted values from your application settings created in the previous step.

See the tweepy tutorial for more information, if needed.

Run the Jupyter notebook

Run the Jupyter notebook from a shell in the repo root directory

  • jupyter notebook Get\ Flashcards.ipynb

Jupyter will open a browser page, execute the code, placing all ML flashcards in a ml-cards local directory.

You can enter CTRL+C twice to stop jupyter from the command line.

View the cards

All cards are stored in a local ml-cards directory.

getcards's People

Contributors

dpananos avatar stevetarver 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.