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
CHAT_ID_1=-1001179526170 | |
CHAT_ID_2=-1001332882905 | |
CHAT_ID_FORWARD= | |
API_ID= Obtain here: http://my.telegram.org/apps/ | |
API_HASH=Obtain here: http://my.telegram.org/apps/ | |
API_PHONE=+8882222222222 | |
API_DB_ENC=Generate any hash to encrypt DB and paste here | |
API_LIB_PATH=path to tdjson lib (if you wish build yourself: https://github.com/tdlib/td?tab=readme-ov-file#building) |
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 axios from 'axios'; | |
import FormData from 'form-data'; | |
import fs from 'fs' | |
const base = 'https://api.vk.com/method/' | |
const baseParams = { | |
v: "5.131", | |
access_token: VK_TOKEN | |
} | |
const vk = axios.create({ |
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
/* | |
Написать программу имеющую текстовое меню, реализующую следующие функции: | |
Решить с использованием: а. Сортировки «Пузырьком», б. Сортировки «вставками», в. | |
«Быстрой сортировкой» | |
Даны два упорядоченных набора чисел D1,D2 ,...,Dn и B1,B2,...,Bm. Соединить их в | |
один упорядоченный массив P. | |
*/ | |
using System; | |
namespace arrays |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
namespace files | |
{ | |
class Program | |
{ | |
static string prompt(string question) | |
{ |
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
using System; | |
namespace functions | |
{ | |
class Program | |
{ | |
static string prompt(string question) | |
{ | |
Console.WriteLine(question); // пишем запрос в консоль | |
return Console.ReadLine(); // возвращаем ввод от пользователя в переменную | |
} |
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
using System; | |
using System.Text.RegularExpressions; | |
namespace strings | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("Type in string to process:"); // пишем запрос в консоль |
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
<html ng-app="patternfly.charts" lang="ru"> | |
<head> | |
<title>Пример отрисовки графика по данным формы, обрабатываемой на сервере</title> | |
<script src="https://patternfly.github.io/angular-patternfly/grunt-scripts/jquery.js"></script> | |
<script src="https://patternfly.github.io/angular-patternfly/grunt-scripts/bootstrap.min.js"></script> | |
<script src="https://patternfly.github.io/angular-patternfly/grunt-scripts/bootstrap-select.js"></script> | |
<script src="https://patternfly.github.io/angular-patternfly/grunt-scripts/jquery-ui.js"></script> | |
<script src="https://patternfly.github.io/angular-patternfly/grunt-scripts/jquery.dataTables.js"></script> | |
<script src="https://patternfly.github.io/angular-patternfly/grunt-scripts/dataTables.select.js"></script> | |
<script src="https://patternfly.github.io/angular-patternfly/grunt-scripts/moment.js"></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
CREATE TRIGGER log_msg_deleting BEFORE DELETE ON your_table | |
FOR EACH ROW | |
BEGIN | |
DECLARE original_query VARCHAR(1024); | |
SET original_query = (SELECT concat(UNIX_TIMESTAMP(),user,host,INFO) FROM INFORMATION_SCHEMA.PROCESSLIST WHERE id = CONNECTION_ID()); | |
INSERT INTO `yourLogTable`(`yourMediumtextLogField`) VALUES (original_query); | |
END; |
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
<?php | |
namespace SfuKruto\model; | |
/** | |
* Класс-обработчик дробей | |
*/ | |
class Fraction | |
{ | |
/** @var int|Radical числитель */ |
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> | |
<title>title</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
</head> | |
<body> | |
<h1>Hello, world</h1> | |
<div id="vk_groups"></div> | |
<script src="./example.js"></script> |
NewerOlder