Commands to install:
dnf copr enable bitedasher/osu-lazer
dnf install osu-lazer
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
public class RssController : Controller | |
{ | |
private readonly INoteRepository _notes; | |
public RssController(INoteRepository notes) | |
{ | |
_notes = notes; | |
} | |
public ContentResult Rss() | |
{ |
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
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 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 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 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 { |