This file contains 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
kill -9 $(ps aux | grep RefreshDate | awk '{print $2}') |
This file contains 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
#change standart widget to choice inputs https://github.com/django/django/blob/master/django/forms/widgets.py#L577 | |
class MyForm(forms.ModelForm): | |
class Meta: | |
model = office_models.myForm | |
fields = ['education', 'occupation', 'post', \ | |
'neighborhood', 'man_count', 'with_animals'] | |
widgets = { | |
'education': forms.RadioSelect, | |
'occupation': forms.RadioSelect, |
This file contains 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
.general_cont { | |
height: auto !important; | |
min-height: 100%; | |
height: 100%; | |
} | |
.footer { | |
margin-top: -216px; | |
padding: 0 30px 0px 30px; | |
} |
This file contains 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
$(document).on('click', function(e){ | |
var elem = $(e.target), | |
contanier =$('.events_list'); | |
if (elem.closest('.events_list').length){ | |
if (elem.is('.open_close')){ | |
contanier.toggleClass('open');}} | |
else | |
contanier.removeClass('open'); | |
}); |
This file contains 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
function extend(cls, superCls) | |
{ | |
var construct = function () {}; | |
construct.prototype = superCls.prototype; | |
cls.prototype = new construct(); | |
cls.prototype.constructor = cls; | |
var obj = superCls; | |
cls.index = 0; | |
cls.extend_array = [obj]; | |
while (typeof obj != 'undefined' && obj.hasOwnProperty('super')) |
This file contains 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
""" | |
Django settings for surgut project. | |
For more information on this file, see | |
https://docs.djangoproject.com/en/1.6/topics/settings/ | |
For the full list of settings and their values, see | |
https://docs.djangoproject.com/en/1.6/ref/settings/ | |
""" |
This file contains 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
# XTERM TWEAKS | |
# =============================================================== | |
# | |
# | |
# Set term to xterm-color | |
#term screen | |
term xterm-256color | |
#term xterm-color |
This file contains 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
#it is not working | |
@sql_f = SELECT group_concat(CONCAT("ALTER TABLE ",TABLE_SCHEMA,".",TABLE_NAME," CHARACTER SET utf8 COLLATE utf8_general_ci; ", | |
"ALTER TABLE ",TABLE_SCHEMA,".",TABLE_NAME," CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; ") SEPARATOR '; ') | |
AS alter_sql | |
FROM information_schema.TABLES | |
WHERE TABLE_SCHEMA = 'tc-akvarel_ru'; | |
PREPARE sql FROM @sql_f; | |
EXECUTE sql; |
This file contains 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
=decor_pseudo($after) | |
position: relative | |
&:#{$after} | |
content: '' | |
position: absolute | |
@content | |
=keyframes($name) | |
@-webkit-keyframes #{$name} | |
@content |
This file contains 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
.on('click', '.carousel .next, .carousel .prev', function(e){ | |
e.preventDefault(); | |
var self = $(this), add_elem = $('<div/>'), | |
slier = self.closest('.carousel').find('ul'), | |
slier_count = slier.find('.js_slide').length - 1, | |
next_pos = (self.is('.next')? 1: -1) | |
+ slier.find('.sel') | |
.removeClass('sel') | |
.index(), | |
width = slier.width(), |
OlderNewer