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
# XTERM TWEAKS | |
# =============================================================== | |
# | |
# | |
# Set term to xterm-color | |
#term screen | |
term xterm-256color | |
#term xterm-color |
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
""" | |
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 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
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 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
$(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 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
.general_cont { | |
height: auto !important; | |
min-height: 100%; | |
height: 100%; | |
} | |
.footer { | |
margin-top: -216px; | |
padding: 0 30px 0px 30px; | |
} |
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
#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 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
kill -9 $(ps aux | grep RefreshDate | awk '{print $2}') |
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
SELECT DATE_FORMAT(d, "%Y%m") as month_year, GROUP_CONCAT(id SEPARATOR ',') as ids FROM events_event GROUP BY month_year LIMIT 100 |
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
[client] | |
default-character-set=utf8 | |
[mysqld] | |
default-character-set=utf8 | |
collation_server=utf8_unicode_ci | |
datadir=/var/lib/mysql | |
socket=/var/lib/mysql/mysql.sock | |
user=mysql | |
# Disabling symbolic-links is recommended to prevent assorted security risks |
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
var onLoader = function onloader(call, selector) | |
{ | |
var loaderTimer = setInterval(function() | |
{ | |
if ( | |
!$(selector).filter(function() | |
{ | |
return !this.complete | |
}).length | |
) |