Commands to install:
dnf copr enable bitedasher/osu-lazer
dnf install osu-lazer
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
| package main | |
| import ( | |
| "github.com/Syfaro/telegram-bot-api" | |
| "log" | |
| ) | |
| func main() { | |
| // подключаемся к боту с помощью токена | |
| bot, err := tgbotapi.NewBotAPI("ТОКЕН") | |
| if err != nil { |
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
| import telebot | |
| bot = telebot.TeleBot("<bot token>") | |
| @bot.callback_query_handler(func=lambda call: True) | |
| def test_callback(call): | |
| print(call) | |
| bot.answer_callback_query(call.id, text="амогус", url="https://github.com/demndevel") | |
| bot.infinity_polling() |
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
| using System.Text.Json.Serialization; | |
| using System.Xml; | |
| using Newtonsoft.Json; | |
| namespace chatik; | |
| class Message | |
| { | |
| public string Text = ""; | |
| public string Nickname = ""; | |
| } |
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
| public class Sanitizer | |
| { | |
| public static string Sanitize(string name) | |
| { | |
| string invalidChars = System.Text.RegularExpressions.Regex.Escape( new string( System.IO.Path.GetInvalidFileNameChars() ) ); | |
| string invalidRegStr = string.Format( @"([{0}]*\.+$)|([{0}]+)", invalidChars ); | |
| return System.Text.RegularExpressions.Regex.Replace( name, invalidRegStr, "_" ); | |
| } | |
| } |
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
| public class RssController : Controller | |
| { | |
| private readonly INoteRepository _notes; | |
| public RssController(INoteRepository notes) | |
| { | |
| _notes = notes; | |
| } | |
| public ContentResult Rss() | |
| { |
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
| { | |
| "offers": [ | |
| { | |
| "id": "near_vacancies", | |
| "title": "Вакансии рядом с вами", | |
| "link": "https://hh.ru/" | |
| }, | |
| { | |
| "id": "level_up_resume", | |
| "title": "Поднять резюме в поиске", |
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
| { | |
| "name": "Pomelo - Анализ состава продуктов", | |
| "short_name": "Pomelo", | |
| "description": "Приложение для анализа состава продуктов! Сфотографируйте этикетку и получите подробный отчёт о составе и вредности продукта прямо в магазине.", | |
| "start_url": "/scanner", | |
| "orientation": "portrait", | |
| "display": "standalone", | |
| "background_color": "#ffffff", | |
| "theme_color": "#7a9b47", | |
| "icons": [ |