Creating 7 web apps in 7 days with Django(7days7apps.com)
7days7apps.com
Creating 7 web apps in 7 days with Django
http://www.7days7apps.com/
5 comments
Done before, but with other languages. I hate pride coding.
I have heard of anappaday.com, what are the others?
why not one app I would possibly want to use?
Whats with all the rush?
proving a point :)
A complete add would be better. More != Better.
Okay, I wasn't going to mention it before because it only seemed to cover the ejecta (no pun intended) of a certain web phenomenon, but now it's getting ridiculous.
N Xs M Y(s) is now a snowclone.
N Xs M Y(s) is now a snowclone.
I don't think the apps are exactly done. I looked through the source code a little, and saw a (rather amusing) todo note.
def htmlize(text, language):
from pygments import highlight
from pygments.formatters import HtmlFormatter as Formatter
if language == 'Python':
from pygments.lexers import PythonLexer as Lexer
elif language == 'Perl':
from pygments.lexers import PerlLexer as Lexer
elif language == 'Ruby':
from pygments.lexers import RubyLexer as Lexer
elif language == 'PythonConsole':
from pygments.lexers import PythonConsoleLexer as Lexer
elif language == 'PythonTraceback':
from pygments.lexers import PythonTracebackLexer as Lexer
elif language == 'RubyConsole':
from pygments.lexers import RubyConsoleLexer as Lexer
elif language == 'HtmlDjango':
from pygments.lexers import HtmlDjangoLexer as Lexer
elif language == 'Html':
from pygments.lexers import HtmlLexer as Lexer
else:
from pygments.lexers import TextLexer as Lexer
"""
Todo: I cant get this to work.
lang_lexer = str(language + 'Lexer')
Lexer = __import__('pygments.lexers', globals(), locals(), [lang_lexer, ])
Or
from pygments.lexers import get_lexer_by_name
Lexer = get_lexer_by_name(language.lower())
"""
htmld = highlight(text, Lexer(), Formatter(linenos='table'))
return htmld