Skip to content

Instantly share code, notes, and snippets.

View ewok-old's full-sized avatar
👨‍💻
archived

Artur Taranchiev ewok-old

👨‍💻
archived
  • Bishkek
View GitHub Profile

Keybase proof

I hereby claim:

  • I am ewok on github.
  • I am ewok (https://keybase.io/ewok) on keybase.
  • I have a public key ASBIXv7hlIFYLr9DxrqsBpRzWQCv2EUUsvuinOR5hGd-ogo

To claim this, I am signing this object:

#include <stdio.h>
#include <stdlib.h>
#define m(x)(x<0?-1:!!x)
#define g tj()-J
#define a(x)(x<0?-x:x)
#define h(x)((x)<=K?x:N-(x))
#define f 9999
#define A return
#define H printf(
@ewok-old
ewok-old / views.py
Created June 29, 2014 07:41
Использование FormMixin и ListView
class AgentListView(FormMixin, AjaxListView):
model = User
template_name = "catalog/agents_list.html"
page_template = "catalog/agents_list_page.html"
form_class = AgentQuickFilterForm
SORT_BY = {
'name': 'last_name',
'-name': '-last_name',
'rating': 'rating',