Git Product home page Git Product logo

sipresentation's Introduction

Object Oriented Programming Slides -- FuturePresentation

Part of the Object Oriented Programming course given at National University of Colombia.

Powered by reveal.

Using the adaptation of nakednous.

Made possible thanks to...

Installation

$ git clone https://github.com/FutureUN/FuturePresentation.git 
$ cd FuturePresentation

Folder Structure

|-- css/
|-- js/
|-- plugin/
|-- lib/
|-- fig/
|-- sketches/
|-- index.html
|-- source.md

Refer to the reveal folder structure for more details, and to the Setup below.

Setup

External markdown and speaker notes, require that presentations run from a local web server. The following instructions will set up such a server as well as all of the development tasks needed to make edits to the slides source code.

  1. Install Node.js

  2. Install Grunt

  3. Install dependencies (you must be already on the presentation folder, otherwise $ cd FuturePresentation)

$ npm install
  1. Edit the presentation contents using markdown in the source.md, adding figures to the fig/ folder and p5.js skectches to the skectches/ folder (detailed instructions below) as needed.

  2. Serve the presentation and monitor source files for changes

$ grunt serve
  1. Open http://localhost:8000 to view your presentation

You can change the port by using grunt serve --port 8001.

p5.js sketches

  1. Create your js sketch in the sketches folder, e.g.,
$ touch sketches/mysketch.js
  1. Define a canvas id (e.g., mysketch_id) within your mysketch.js setup function:
  • Use p5.js 'global mode' when including just a single sketch into the presentation.

    function setup() {
        var myCanvas = createCanvas(400, 400);
        myCanvas.parent('mysketch_id');
    }
  • Use 'instance mode' if you need to inlcude more than one:

    var sketch1 = function( p ) {
        p.setup = function() {
            p.createCanvas(400, 400);
        };
    };
    var myp5_1 = new p5(sketch1, 'mysketch_id');
  1. Include your sketch as a script in the index.html, e.g., <script src="sketches/mysketch.js"></script>

  2. Locate your sketch in the source.md at the place you want it to be, using the id: defined in step 2, e.g., <div id='mysketch_id'></div>

sipresentation's People

Contributors

jiapulidoar avatar lbsantosg avatar jschavesr avatar

Watchers

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