This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.setInterval(function(){ | |
| var volumeShouldBeOn = true; | |
| var volumeIsOn = !Boolean($('.volume__icon_mute').length); | |
| var isAdvShown = $('.slider__item_advert.slider__item_shown').length; | |
| if (isAdvShown) { | |
| volumeShouldBeOn = false; | |
| } | |
| if ((volumeShouldBeOn && !volumeIsOn) || (!volumeShouldBeOn && volumeIsOn)) { | |
| $('.volume__btn').click(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class QuerySet(object): | |
| def __init__(self, query=None): | |
| self.query = query or {} | |
| def _clone(self): | |
| return type(self)(query=deepcopy(self.query)) | |
| def __getitem__(self, k): | |
| if isinstance(k, slice): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from django.conf import settings | |
| from django.contrib.auth.models import Group | |
| from django.contrib.auth.models import Permission | |
| from django.contrib.auth.models import AnonymousUser | |
| from django.utils.importlib import import_module | |
| import six | |
| import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| """ | |
| $ curl -d 'hello=world' http://localhost:8888/path/?someparam=1 | |
| Request URL: http://localhost:8888/path/?someparam=1 | |
| Request Method: POST | |
| Request Headers: | |
| Host: localhost:8888 | |
| Content-Type: application/x-www-form-urlencoded |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .form-row{ | |
| overflow: visible !important; | |
| } | |
| .form-row:after{ | |
| content: "."; | |
| display: block; | |
| clear: both; | |
| visibility: hidden; | |
| line-height: 0; |