Skip to content

Instantly share code, notes, and snippets.

View Abubakr0904's full-sized avatar

Abubakr Bakhromov Abubakr0904

View GitHub Profile
@Abubakr0904
Abubakr0904 / UzbekPhoneNumberRegex.txt
Created April 4, 2022 09:41 — forked from wahidustoz/UzbekPhoneNumberRegex.txt
Uzbek Phone Number Regular Expression
^[\+]?(998[-\s\.]?)([0-9]{2}[-\s\.]?)([0-9]{3}[-\s\.]?)([0-9]{2}[-\s\.]?)([0-9]{2}[-\s\.]?)$
namespace Ilmhub.Auth.Controllers
{
[Authorize]
[SecurityHeaders(
FontSources = SecurityHeadersFontSources.FONTAWESOME + SecurityHeadersFontSources.GLUWASTATIC,
ScriptSources = SecurityHeadersScriptSources.JQUERY + SecurityHeadersScriptSources.BOOTSTRAP + SecurityHeadersScriptSources.INTERNAL,
StyleSources = SecurityHeadersStyleSources.BOOTSTRAP + SecurityHeadersStyleSources.FONTAWESOME + SecurityHeadersStyleSources.GOOGLEFONTS)]
public class AccountController : Controller
{
private readonly MessagingClient mMessagingClient;
@Abubakr0904
Abubakr0904 / Test.cs
Created March 8, 2022 11:26
async await example
using System;
using System.Threading.Tasks;
public class HelloWorld
{
public static async Task Main(string[] args)
{
Console.WriteLine ("Main Started.");
var res = DoStuff();
Console.WriteLine ("Mainda DoStuffdan qaytgan task olindi.");
await res;
using System.Collections.Generic;
using System.Linq;
using System;
public static class OJAnswers
{
public static void Problem51()
{
int n = int.Parse(Console.ReadLine());
int number = 1;
@Abubakr0904
Abubakr0904 / problem_41.cs
Last active December 13, 2021 18:33
41-masala
using System;
public class Program
{
public static void Main(string[] args)
{
var son = int.Parse(Console.ReadLine());
for(int i = 2; i <= Math.Sqrt(son) + 1; i++)
{
if(son % i == 0)