In urls.py
# urls like "articles/2011/tutorial03" or "articles/2011/tutorial03.html"
urlpatterns = patterns('',
(r'articles/(?P<year>(?U)\\d+)/(?P<item>(?U)[^/]+)(?:\\.htm(?:l)?)?/?\$', 'articles.detail'),
)
| javascript: (function() { | |
| function main() { | |
| if (!window.Turndown || !window.Readability) { | |
| console.log("Libraries not loaded, see below") | |
| console.log(window.Turndown) | |
| console.log(window.Readability) | |
| } | |
| else { | |
| console.log("loading") | |
| let Readability = window.Readability; |
| var https = require('https'); | |
| var limit = 2 * 1000; | |
| function fetch(cb) { | |
| var req = https.request('https://url', function(res) { | |
| var text = ''; | |
| res.on('data', function(chunk) { | |
| text += chunk; |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| fabfile for Django | |
| ------------------ | |
| see http://morethanseven.net/2009/07/27/fabric-django-git-apache-mod_wsgi-virtualenv-and-p/ | |
| modified for fabric 0.9/1.0 by Hraban (fiëé visuëlle) | |
| several additions, corrections and customizations, too |
| :⌉ | |
| =⌉ | |
| ¦-) as opposed to | | |
| ☺ | |
| ☹ | |
| ☻ | |
| ⍣ | |
| ⍤ | |
| ⍥ om nom nom | |
| ⍨ |