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
services: | |
mongodb: | |
image: mongo:latest | |
container_name: localizer_mongo | |
volumes: | |
- ./DATA/mongo-volumes:/data/db | |
backend: | |
image: alexstep/localizer-backend |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mocha/5.0.4/mocha.css"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/mocha/5.0.4/mocha.js"></script> | |
<script> | |
mocha.setup('bdd'); | |
</script> |
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
server { | |
server_name domainname.com; | |
listen 80; | |
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; | |
add_header X-Content-Type-Options nosniff; | |
add_header X-XSS-Protection "1; mode=block"; | |
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;"; | |
add_header Referrer-Policy "no-referrer-when-downgrade"; |
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
// https://moment.github.io/luxon/docs/manual/math.html#time-math | |
const { DateTime } = require('luxon') | |
const myRoundDates = function (birthday_str){ | |
const typesArr = {'years':'лет','months':'месяцев','weeks':'недель','days':'дней'} | |
const roundDates = {} | |
// Округление до ближайшего большего круглого значения | |
// в соответствии с разрядом числа |
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
0x0B5A5c67d302645A7781797faF1bc78361c9D4a8 |
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
<stat> | |
<script> | |
this.on('mount', ()=>{ | |
}) | |
</script> | |
<stat> | |
</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
#!/bin/sh | |
# | |
if git rev-parse --verify HEAD >/dev/null 2>&1 | |
then | |
against=HEAD | |
else | |
# Initial commit: diff against an empty tree object | |
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 | |
fi |
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
#!/bin/bash | |
clear | |
echo '' | |
echo '' | |
echo ' !!! ВНИМАНИЕ !!! ' | |
echo ' Ознакомьтесь с инструкцией http://habrahabr.ru/post/235523/' | |
echo '' | |
echo ' Всё что вы делаете вы делаете на свой страх и риск' | |
echo '' | |
echo 'Нажмити Enter для продолжения' |
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
<?$APPLICATION->IncludeComponent("bitrix:search.page", "", array( | |
"RESTART" => "N", | |
"NO_WORD_LOGIC" => "N", | |
"CHECK_DATES" => "N", | |
"USE_TITLE_RANK" => "N", | |
"DEFAULT_SORT" => "rank", | |
"FILTER_NAME" => "", | |
"arrFILTER" => array( | |
0 => "no", | |
), |
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
<?$APPLICATION->IncludeFile( | |
$APPLICATION->GetTemplatePath("include_areas/filename.php"), | |
Array(), | |
Array( | |
"MODE"=>"text" | |
//"MODE"=>"html" | |
//"MODE"=>"php" | |
) | |
);?> |
NewerOlder