Giter VIP home page Giter VIP logo

cognitive's Introduction

Visual Computing Slides -- Cognitive

All Contributors

Part of the Visual Computing course given at National University of Colombia by Jean Pierre Charalambos and Andres Colubri.

Powered by reveal.

Installation

$ git clone https://github.com/VisualComputing/Cognitive.git
$ cd Cognitive
$ git checkout gh-pages

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 Cognitive)

$ 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>

Contributors

Thanks goes to these wonderful people (emoji key):


Jean Pierre Charalambos

💻 📖 🐛 🎨 🤔 💬 📢 ⚠️ 🔧

Fabián Monsalve

💻

eabohorquezg

💻

xyos

💻

caatovarbo

💻

Sergio Castro

💻

Víctor Ramírez

💻

Neill Giraldo

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

cognitive's People

Contributors

hakimel avatar nakednous avatar vonc avatar mischah avatar bnjmnt4n avatar lordsutch avatar davidbanham avatar aspiers avatar owenversteeg avatar rmurphey avatar dandv avatar denehyg avatar alexbatista avatar asmod3us avatar farosas avatar burnpanck avatar gturri avatar xyos avatar technicalpickles avatar webpro avatar nschonni avatar tkaczmarzyk avatar xiaomipatchrom avatar rajgoel avatar danielmitd avatar linux-man avatar olivierbloch avatar bkimminich avatar caatovarbo avatar commadelimited avatar

Watchers

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