Optimized CodeMirror with RequireJS AMD modules

CodeMirror¬†is a great JavaScript library if you want to have a syntax-highlighted text area in a web page, but if you’re using AMD modules and want to use a compressed version, such as one from their minification helper on the CodeMirror site, you’re going to have a bad time. More specifically, you will get a … Continue reading

FacebookTwitterGoogle+RedditShare

Arpeggio Screensaver

So on Khan Academy, I created one of those classic screensavers with the object that bounces off the sides of the screen. The object is a basic music staff with four notes making an Em chord arpeggio (assume treble clef). For a bonus, the background color morphs randomly. Also, click anywhere to make the staff … Continue reading