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
let str = "TIRE AND WHEEL AGREEMENT SECTION"; | |
let res = ''; | |
str | |
.toLowerCase() | |
.split(' ') | |
.forEach((el, i) => { | |
if (i) { | |
el = el.charAt(0).toUpperCase() + el.slice(1); | |
} |
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
const fact = (x) => { | |
if (x == 1) return 1 | |
else return x * fact(x-1) | |
} | |
console.log(fact(5)) // 120 |
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
const binarySearch = (array, item) => { | |
let low = 0; | |
let high = array.length - 1; | |
let iter = 1; | |
while(low <= high) { | |
let middle = parseInt((high + low) / 2); | |
let value = array[middle]; |
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
#include<cstdio> | |
#define N (1024*1024) | |
__global__ void kernel(float *dA, float *dB, float *dC, int size) | |
{ | |
int i = blockIdx.x * blockDim.x + threadIdx.x; | |
if (i < size) dC[i] = dA[i] + dB[i]; | |
} | |
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
Отчет Кузнецова Андрея | |
Команда: Кузнецов Андрей, Малышев Влад, Корсаков Роман | |
Продукт: Messenger | |
Для разработки продукта мы выбрали следующий стек технологий: | |
- Express.js | |
- Postgresql | |
- GitHub // Контроль версий | |
- Heroku // Хостинг | |
1. Я создал организацию на GitHub https://github.com/Uniyar | |
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
alert('* Агент Запущен | Потребуется 1-2 мин...'); | |
// Файл расположен на сервере в папке wt\web | |
var url = AppDirectoryPath() + "\\wt\\web\\Сотрудники1.xml"; | |
try { | |
function create_table(url) { | |
stringXML = LoadUrlData(FilePathToUrl(url)); | |
var update_fields = { | |
"СписокСотрудников": "list_collaborators", | |
"Сотрудник": "collaborator", |
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
alert('=== Запуск агента ==='); | |
open_doc = OpenDoc("x-local://wt/web/temp.xml"); | |
// Данные из таблицы | |
table = open_doc.TopElem.Worksheet.Table | |
info = { | |
// headers: [], | |
number_of_column: 0, | |
number_of_row: 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
<fieldset> | |
<legend>Загрузка файлов</legend> | |
<div> | |
<label for="data">Загружаемый файл:</label> | |
<input type="file" | |
id="data" name="data" | |
accept="image/png, image/jpeg" /> | |
</div> | |
<div> | |
<input type="submit" value="Загрузить"> |
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 lang="ru"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Авторизация</title> | |
</head> | |
<body> | |
<input id="login" type="text" placeholder="Логин"><br> | |
<input id="password" type="password" placeholder="Пароль"> | |
<span id="show_password">Показать пароль</span><br> |
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
curDate - текущая дата // 12.10.2018 16:30:26 | |
StrLen(str:String) // Integer | |
Возвращает длину строки в байтах | |
StrCharCount(str:String) // Integer | |
Возвращает количество символов в строке | |
StrEnds(str:String, subStr:String [, ignoreCase:Bool]) // Bool | |
Проверяет, оканчивается ли строка на другую строку. |
NewerOlder