Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.
brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus| import java.util.Map; | |
| import java.util.Comparator; | |
| import java.util.Collections; | |
| int index = 0; | |
| // sprite sheet | |
| PImage pokemon; | |
| // current pokemon sprite | |
| PImage current; | |
| // current pie chart |
| // Modified version of a tilt shift shader from Martin Jonasson (http://grapefrukt.com/) | |
| // Read http://notes.underscorediscovery.com/ for context on shaders and this file | |
| // License : MIT | |
| uniform sampler2D tex0; | |
| varying vec2 tcoord; | |
| varying vec4 color; | |
| /* | |
| Take note that blurring in a single pass (the two for loops below) is more expensive than separating |
| /* | |
| * This AfterEffects script sorts layers in a composition according to their in-points. | |
| * | |
| * 1. Save this file as "sortlayers.jsx". | |
| * 2. Select a target composition in project panel of your AfterEffects. | |
| * 3. Run "sortlayers.jsx" from Menu->"File"->"Scripts"->"Run Script File". | |
| */ | |
| app.beginUndoGroup("Sort layers"); | |
| var item = app.project.activeItem; | |
| if (item != null && item instanceof CompItem) { |
| """ | |
| The activation key for the ``UserProfile`` will be a | |
| SHA1 hash, generated from a combination of the ``User``'s | |
| email and a random salt. | |
| """ | |
| salt = hashlib.sha1(str(random.random())).hexdigest()[:5] | |
| email = user.email | |
| if isinstance(email, unicode): |
| from django.template import Library | |
| from django.templatetags.future import URLNode, url | |
| register = Library() | |
| class AbsoluteURLNode(URLNode): | |
| def __init__(self, view_name, args, kwargs, asvar, legacy_view_name=True): | |
| super(AbsoluteURLNode, self).__init__(view_name, | |
| args, | |
| kwargs, |