Giter Club home page Giter Club logo

hackthing_01's Introduction

01: What Would Markov Say?

Friday, November 15, 8:00 - 10:00 PM (Location TBA)

Go play with this: http://what-would-i-say.com/

"It's pretty cool," says you. But WHY? Well, my friend, you've just stumbled upon a bigram word model, a.k.a. depth-2 Markov Chain. "Wow, that sounds fancy. I'll never be able to build something like that."

Well, consider yourself wrong!

Markov chains are super-straightforward and very applicable to a bunch of things. And if everything goes well, by the end of the two hours you will have your very own super-special Markov system.

OVERVIEW:

Basic Terminal Commands * ls * cd * mv * rm * mkdir

Markov Chain - Algorithm Overview * What is a Markov Chain? * Programming it in Python * Testing it on sample data

Retrieving Data from Other Websites * Using "curl" to grab web pages * Using regex to parse pages and save them to files

Extra: Linking With Twitter * The Twitter API * OAuth magic (via tmhOAuth)

SETUP:

  1. Download Python 3.x: http://python.org/download/

  2. Get a shell:

For Windows:

Download Cygwin: http://cygwin.com/install.html

*** Will update with better instructions later ***

NOTE: For Windows users, I strongly recommend setting up a virtual machine with VirtualBox and Ubuntu or one of its variants, but the process is nuanced and I can understand if you don't want to set up something so heavy. But Cygwin really sucks.

For Macintosh & Linux:

You already have a shell! Yay!

(except Macs don't have apt-get or gcc installed by default but hopefully we won't touch those for now)
  1. Get a text editor:

Vim:

http://www.vim.org/download.php

    or type

sudo apt-get install vim

    in Terminal

Emacs:

http://www.gnu.org/software/emacs/#Obtaining

    or type

sudo apt-get install emacs

    in Terminal

* I don't actually know how to use Emacs.
  1. Make sure the commands "curl" and "wget" run from your shell.

    *** Will update with better instructions later ***

  2. OPTIONAL: Get git

For Windows:

http://git-scm.com/download/win

For Mac:

http://git-scm.com/download/mac

For Linux:

In Terminal:

    sudo apt-get install git

*** MORE SOON ***

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.