Skip to content

Keybase proof

I hereby claim:

  • I am eserge on github.
  • I am eserge ( on keybase.
  • I have a public key whose fingerprint is A361 E468 4BDD A5AB 57C3 BC8A 7214 9B90 BCE4 4CF7

To claim this, I am signing this object:

View gist:3426706
{% block extrahead %}{{ block.super }}
{% url 'admin:jsi18n' as jsi18nurl %}
<script type="text/javascript" src="{{ jsi18nurl|default:"../../../jsi18n/" }}"></script>
{{ media }}
<script src="{{STATIC_URL}}js/jquery-ui-1.8.17.custom.min.js"></script>
function jqVersion() {
View gist:1926536
class LoginMixin(object):
"""Mixin for securing a class.
Taken from here:
def do_logout(self, request):
"""Logs the user out if necessary."""
View gist:1754504
# -*- coding: utf-8 -*-
from django.forms.models import ModelForm
from django import forms
from models import Profile
import bleach
class EditProfileForm(ModelForm):
phone = forms.CharField(required=False,
help_text=u"Рекомендуемый формат: +74951234567")
View gist:1729974
function hightlight(highlight_string, part){
workstring = highlight_string;
var indices = [];
var cut = all_cut = 0;
while (workstring.indexOf(part) != -1) {
index = workstring.indexOf(part);
cut = index + part.length;
workstring = workstring.substr(cut);
all_cut = all_cut + cut;
View gist:1606523
$(".concealable").css('display', (this.checked)?"block":"none");
View gist:1605923
def random_string(length):
'''visually similar characters were deliberately removed'''
import random
letters = u"346789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRTUVWXY"
return "".join([letters[random.randint(0,len(letters)-1)] for i in range(length)])
if __name__ == "__main__":
for i in range(10):
print random_string(10)
# -*- coding: utf-8 -*-
import decimal
from django.conf import settings
from shop.cart.cart_modifiers_base import BaseCartModifier
class FixedShippingCosts(BaseCartModifier):
# """
# This will add a fixed amount of money for shipping costs.
# """
Something went wrong with that request. Please try again.