This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Plays all audio elements inside a slide when the slide becomes active | |
and pauses them when the user navigates away. Replace pause with | |
whatever functionality desired (maybe pause and set currentTime to 0?) */ | |
$(document).bind('deck.change', function(e, from, to) { | |
$.deck('getSlide', from).find('audio').each(function() { | |
this.pause && this.pause(); | |
}); | |
$.deck('getSlide', to).find('audio').each(function() { | |
this.play && this.play(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################################## | |
##### Author: Diego Valle Jones | |
##### Website: www.diegovalle.net | |
##### Date Created: Mon Mar 01 18:51:27 2010 | |
######################################################## | |
#1. For what foods are Americans and Mexicans outliers | |
#2. Partition the data around medoids to classify the | |
#countries of the world according to what they eat | |
library(ggplot2) |
NewerOlder