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
from django.contrib.staticfiles.storage import staticfiles_storage | |
from pipeline.packager import Packager | |
from pipeline.conf import settings | |
def get_pipeline_urls(package_type, package_name): | |
packager = Packager() | |
package = packager.package_for(package_type, package_name) | |
if settings.PIPELINE_ENABLED: | |
return ( staticfiles_storage.url(package.output_filename), ) |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
/** | |
Writes a sandboxed block of HTML to the supplied node. | |
<p>Based on an example from <a href="https://github.com/RCanine/embed-code">Meebo</a>.</p> | |
@method writeSandboxedHTML | |
@namespace RC | |
@param {String} width a valid CSS width | |
@param {String} height a valid CSS height | |
@param {String} html a block of HTML code |
@hosts(["mckenzie.servers.ljworld.com"]) | |
def pull_db(db_name, user_db_name=None): | |
if db_name is None: | |
exit("You must provide a database name") | |
# add username to db_name | |
if user_db_name is None: | |
user_db_name = '%s_%s' % (env.user, db_name) |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
# -*- coding: utf-8 -*- | |
from django import forms | |
from crispy_forms.helper import FormHelper | |
from crispy_forms.layout import Layout, Div, Submit, HTML, Button, Row, Field | |
from crispy_forms.bootstrap import AppendedText, PrependedText, FormActions | |
class MessageForm(forms.Form): | |
text_input = forms.CharField() |
var el = ( function () { | |
var doc = document; | |
var directProperties = { | |
'class': 'className', | |
className: 'className', | |
defaultValue: 'defaultValue', | |
'for': 'htmlFor', | |
html: 'innerHTML', |