Introduction

Welcome. This is the place where I’ve collected some of the things I’ve created using the Computer Science platform in the Khan Academy. Everything here (code, documentation, etc.) is released into the public domain, and available on GitHub.

Update: I no longer use the KA CS environment, and I won’t be posting any new programs. I will keep this page as a reference, but the links to the programs inside the KA will be broken. Sorry.

Leonardo Bmy K.A. profile

Programs

About Me

Some info about who I am, and my programs for the Khan Academy CS platform.

Chemical Formulas Tool

A simple tool that identifies elements from a chemical formula, and provides useful information about them.

Cloth Simulation

A demo of a simple physics simulation based on the (now classic) paper by Thomas Jakobsen, “Advanced Character Physics”.

GIF Reader

A decoder for images in the GIF format.

Image2Code

A simple utility to turn images into JavaScript code that you can integrate into your programs.

MAM Demo

Demo for the Media Assets Manager.

The Portia Puzzles

A collection of simple logic puzzles.

Snowman II

Spin-off of the official “Snowman” program. It adds falling snowflakes, and control of the snowman with the keyboard.

SVGLite Demo

A demonstration program for SVGLite, a JavaScript implementation for a small subset of SVG, a standard format for describing vector graphics.

Short Tutorials

How to detect shapes through mouse clicks.

How to capture sections of the canvas as separate images.

How to store persistent data in JavaScript programs using HTML5’s Web Storage.

Short Examples

Other Resources

Some of my opinions on the limitations imposed on the environment provided by the Khan Academy to learn about computer science.