Giter VIP home page Giter VIP logo

quadtree-talk's Introduction

Quadtrees

Build Status

Hello - welcome to the ./slides and ./exericse for my quadtrees talk!

I've made some notes in NOTES.md about things I found interesting as I coded up my implementation. Maybe you'll spot some interesting things about the algorithm too!

If you do run into issues today, first off: sorry! Secondly please file an issue.

![Image of quadtree of cat](/src/img/compressed image.png?raw=true)

Install

Pre-requisites:

  • Node >= 6.0.0 (you can use nvm if you have another version)
  • Chrome
npm install

Running

npm start

## Exercise

There are two parts - first the unit-tests, which you can complete in TDD style. Secondly the example where you can see your image displayed!

Unit-tests

cd exericses
npm run tddd

This will kick off mocha, and re-run the tests each time you make a change. Avoid using DOM APIs in your index.js as the tests run in Node. All browser-related stuff lives in demo.js and is taken care for you!

Demo

cd exercises
npm start

This will open a browser window with your code running! It will live-reload as you make a change.

Example code

There is a working example in example.js. Try not to use it! :) If you're stuck and it feels like the system is at fault, not you, set the VS_EXAMPLE env variable to anything. The tests and demo will then work vs the example, e.g:

VS_EXAMPLE=1 npm start

# or
VS_EXAMPLE=1 npm test

quadtree-talk's People

Contributors

timruffles avatar mattzeunert avatar

Watchers

James Cloos 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.