Skip to content

Instantly share code, notes, and snippets.

<?php
echo("This is a test.");
// comment
//another comment
?>
rohtoari
# Начин на употреба:
#
# За да бенчмаркнете всички решения
# $ python3 fbbench.py fizzbuzz_*.py
#
# За да бенчмаркнете едно решение:
# $ python3 fbbench.py fizzbuzz_string.py
#
# Забележка: fizzbuzzrecursive.py не може да се бенчмарква,
# защото работи при n < 999, а fbbenchmark.py ползва n = 1000000
set nocompatible
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin
set sol
set is
set ic scs
set so=5
set bg=dark
MIME-Version: 1.0
Sender: [email protected]
Reply-To: [email protected]
Received: by 10.103.241.14 with HTTP; Mon, 29 Mar 2010 03:02:56 -0700 (PDT)
Date: Mon, 29 Mar 2010 13:02:56 +0300
Delivered-To: [email protected]
X-Google-Sender-Auth: 233a56e64ab192ad
Message-ID: <[email protected]>
Subject: TPS reports
From: Smith, John <[email protected]>
======================================================================
ERROR: test_editing (pages.tests.PageEditorTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Python/2.6/site-packages/django/test/testcases.py", line 256, in __call__
self._pre_setup()
File "/Library/Python/2.6/site-packages/django/test/testcases.py", line 223, in _pre_setup
self._fixture_setup()
File "/Library/Python/2.6/site-packages/django/test/testcases.py", line 502, in _fixture_setup
Site.objects.clear_cache()
function showUser(str) {
// clear highlights
$('.highlight').removeClass('highlight');
$('#txtHint').load('author-ajax.php?q=' + str, function() {
$('#authors .' + str).addClass('highlight');
});
}
/*
@aandr
aandr / banjo.py
Created May 3, 2011 21:08
Banjo: jQuery proxy for python
import json
class Banjo:
"""
jQuery proxy for Python
>>> from banjo import b, js
>>> b('#home').toggle()
$("#home").toggle()
>>> b.map(b('p.blue'), js.myJsMapFunc)
/*
A dynamic version for the 960.gs CSS grid framework.
Usage:
.mydiv {
.grid(4); // 4 column box
.grid(4, -2); // 4 column box, 2 column pull (negative left margin)
.grid(8, 0, 2); // 8 column box, 2 column prefix (left padding)
.gird(8, 0, 0, 3); // 8 column box, 3 column suffix (right badding)
}
@aandr
aandr / aop.py
Created May 5, 2011 13:41
Python AOP using Class Decorators
import inspect
def aspectize(arg):
def decorate_method(func):
func.__before = []
func.__after = []
def decorated(*args, **kwargs):
for f in func.__before:
res = f(*args, **kwargs)
@aandr
aandr / blink.css
Created August 9, 2013 08:55
Paste this in your CSS and you'll get the <blink> tag back!