Skip to content

Instantly share code, notes, and snippets.

View monsieurp's full-sized avatar

monsieurp

  • Planet Earth
  • 09:34 (UTC +02:00)
View GitHub Profile
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import urllib2, random
from xml.etree import ElementTree
# Turn an XML document into a string.
def fetch_document(my_url):
return [l.strip() for l in urllib2.urlopen(my_url).readlines()]
def main():
@monsieurp
monsieurp / eapi5.pl
Created March 31, 2015 08:12
eapi5.pl
#!/usr/bin/perl
use warnings;
use strict;
use Term::ANSIScreen qw/cls/;
use POSIX qw/strftime/;
use feature 'say';
# Current year.
my $year = strftime '%Y', gmtime;
diff --git a/libavformat/assdec.c b/libavformat/assdec.c
index b994cc1..f755e02 100644
--- a/libavformat/assdec.c
+++ b/libavformat/assdec.c
@@ -27,19 +27,19 @@
#define MAX_LINESIZE 2000
-typedef struct ASSContext{
+typedef struct ASSContext {