Skip to content

Instantly share code, notes, and snippets.

View cstrelioff's full-sized avatar

Chris Strelioff cstrelioff

View GitHub Profile
@cstrelioff
cstrelioff / READEME.md
Last active January 8, 2016 23:20
counter example with external javascript files

counter exampe with external js files

This is an example of using external javascript files and using the jquery ready() method to execute code when the DOM is loaded (ie, ready). To get this to work:

  1. Download index.html, mycode.js, and jquery-1.11.3.min.js to your computer.
    • Note that I have not include the jquery file here, you'll have to grab this from other examples at the course website.
  2. Put all of the files in the same directory or folder.
  3. Open index.html in your browser and things should work as before, except for the fact that we are using external javascript files
@cstrelioff
cstrelioff / README.md
Last active August 29, 2015 14:22
python + lea: revisiting the medical tests example

A script that replicates all examples in my blog post on revisiting the Bayesian medical tests example-- using Python and Lea to do some probabilistic programming: Medical test/Lea post

Run all the examples

    $ python lea_ex02.py
@cstrelioff
cstrelioff / README.md
Last active August 29, 2015 14:17
basic responsive page + js

overview

A basic responsive web page, following the ideas presented in Learning Responsive Web Design by Clarissa Peterson, with additional JavaScript to output the current window size as well as the size of various HTML elements in the page.

  • Do you have a better, or different, way of doing things like this? Please comment below. I'm mainly interested in basic HTML, CSS and JavaScript solutions (no external js libraries) as a starting point for simple responsive visualization projects.
@cstrelioff
cstrelioff / README.md
Last active August 29, 2015 14:16
Python + Bayes -- example 1

A script that replicates all examples in my blog post on inferring probabilities-- see my bayes post for more information.

Run all the examples

    $ python ex001_bayes.py
@cstrelioff
cstrelioff / README.md
Last active August 29, 2015 14:16
Python + Socrata API

A script that replicates all examples in my blog post using Python to get data from the Socrata API: Socrata post

Run all the examples

    $ python ex004_socrata_api.py