Skip to content

Instantly share code, notes, and snippets.

View filipemanuelofs's full-sized avatar
🔴
Busy

Filipe filipemanuelofs

🔴
Busy
View GitHub Profile
@filipemanuelofs
filipemanuelofs / MEncoder command
Last active January 3, 2016 18:59
embed subtitle in AVI movie
mencoder -sub SUBTITLE.srt -utf8 -ovc xvid -xvidencopts bitrate=-700000 -oac copy -o NEWMOVIE.avi CURRENTMOVIE.avi
class HomeView(ListView):
model = Evento
template_name = 'home.html'
def get_context_data(self, **kwargs):
context = super(HomeView, self).get_context_data(**kwargs)
context['palestra_list'] = Palestra.objects.filter(publico=True)
context['evento_list'] = Evento.objects.all().order_by('-criado_em')[:1]
context['geo_list'] = Local.objects.all()
return context
@filipemanuelofs
filipemanuelofs / gist:5142717
Created March 12, 2013 13:04
div patrocinadores site
<!-- Patrocinadores -->
<article role="article" id="patrocinadores">
<h3>Patrocinadores <a href="#menu" class="go-top">↑ menu</a></h3>
<div class="article-content">
<table>
<!-- Cabeçalho da tabela com os tipos de patrocínio -->
<thead class="tipos">
<tr>
<th>Ouro</th>
<th>Prata</th>