Home     About     Contacts
 RSS feed       

Monthly Archives: Март 2009

todo лист

Posted 18.03.2009 – 08:55 : Личное

todo
вот как-то так

  No Comments  |  Tags: ,

Code test

Posted 15.03.2009 – 05:30 : Прочее

Тестируем подсветку кода:
Perl:

#!/usr/bin/perl -w
 
use strict;
use CGI;
use Data::Dumper;
use ZM::Template;
 
my $q = new CGI;

Python:

def redirect(request):        
    next = request.POST.get('next')
    if next:
        return urllib.unquote(next)
    return request.META.get('HTTP_REFERER', '/')
 
def logout(request):    
    log_out(request)
    return HttpResponseRedirect(redirect(request))

PHP:

<?php
  function foo() {
    echo "Hello World!\\n";
  }
?>

bash:

 
bash-3.2$ whois ya.ru
[Querying whois.ripn.net]
[whois.ripn.net]
% By submitting a query to RIPN's Whois Service
% you agree to abide by the following terms of use:
% http://www.ripn.net/about/servpol.html#3.2 (in Russian)
% http://www.ripn.net/about/en/servpol.html#3.2 (in English).
 
% Sorry. Server busy.
  No Comments  |  Tags: , ,