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
import os | |
from app import create_app, db | |
from flask_script import Manager, Shell | |
app = create_app(os.getenv('FLASK_CONFIG') or 'default') | |
manager = Manager(app) | |
@manager.command | |
def stat(): |
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
var notify = require('gulp-notify'); | |
function log() { | |
var args = Array.prototype.slice.call(arguments); | |
// Send error to notification center with gulp-notify | |
notify.onError({ | |
title: 'Compile Error', | |
message: '<%= error %>' | |
}).apply(this, args); |
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
var play_visible_video = function () { | |
$('.background-video').each(function () { | |
var video = $(this); | |
var view = $(window); | |
var viewTop = view.scrollTop(); | |
var viewBottom = viewTop + view.height(); | |
var videoTop = video.offset().top; |
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
# Игнорируем всё в этой директории | |
* | |
# Кроме самого файла .gitignore | |
!.gitignore |
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
adsp_debug "0" | |
cl_debugrumble "0" | |
cl_detail_avoid_force "0" | |
cl_detail_avoid_radius "0" | |
cl_detail_avoid_recover_speed "0" | |
cl_detail_max_sway "0" | |
cl_forcepreload "1" | |
cl_rumblescale "0" | |
cl_showpluginmessages "0" |
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
alias "+radar" "+use; cl_radar_always_centered 0; cl_radar_scale 0.35; r_cleardecals"; | |
alias "-radar" "-use; cl_radar_always_centered 1; cl_radar_scale 0.5; r_cleardecals"; | |
bind e +radar; |
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
alias "+jumpthrow" "+jump;-attack" | |
alias "-jumpthrow" "-jump" | |
bind mouse5 +jumpthrow |
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
# Возвращаем элементы первого массива, которые есть во втором | |
import random | |
import time | |
def intersection_with_loops(first_array, second_array): | |
result = [] | |
for first_element in first_array: | |
if first_element in second_array: | |
result.append(first_element) | |
return result |