Skip to content

Instantly share code, notes, and snippets.

View nizom333's full-sized avatar
👨‍💻
Backend - Software Engineer

Nizomiddin Najmiddinov nizom333

👨‍💻
Backend - Software Engineer
View GitHub Profile
@nizom333
nizom333 / php
Created November 5, 2018 20:12
PHP
<?
// Задача 1
$bmw = array(
"model" => "x5",
"speed" => 120,
"doors" => 5,
"year" => "2006"
);
$toyota = array(
@nizom333
nizom333 / HackimovSignParser.php
Created June 26, 2020 08:29
Eimzo pkcs7 sign parser in php. simple analog of dsv server
<?php /** @noinspection PhpUndefinedMethodInspection PhpUnused */
/***************************************************************************************************************************************************************************
* Разработчик Хакимов Александр https://github.com/hackimov *
* Данный класс занимается получением данных из подписи формата pkcs7 ГНК РУз. *
* Подпись расшифровывается с помощью phpseclib из X509 вытаскивается BER формат далее декодируется через ASN1 *
* Существует ещё дофига OID политик, можно их дополнить в маппинге но я использовал только самые нужные. *
*
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */
}
@nizom333
nizom333 / input.css
Created March 9, 2021 16:49
Change Autocomplete Styles in Browsers
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
-webkit-text-fill-color: white;
@nizom333
nizom333 / doc_counters.sql
Created May 7, 2021 10:51 — forked from hackimov/doc_counters.sql
doc counters function
create or replace function doc_counters(
mailbox_id_in text,
profile_id_in text,
structure_id_in text
)
RETURNS json
AS
$$
DECLARE owner_reaction integer;
DECLARE partner_reaction integer;
@nizom333
nizom333 / class.php
Last active February 7, 2022 23:10
Хранение данных в кеше ( Битрикс битрикс bitrix bitrix24 bx b24 )
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die();
Bitrix\Main\Loader::includeModule('main');
class SomeComponent extends \CBitrixComponent
{
private function getRequest($id): array
{
$result = [];
@nizom333
nizom333 / GROUP_MAXIMUM.SQL
Created May 31, 2021 06:26 — forked from hackimov/GROUP_MAXIMUM.SQL
#SQL #MAXIMUM #WITHOUT_GROUP_BY #SPEED #QUERY
SELECT maintable.*
FROM TABLE_NAME maintable
LEFT OUTER JOIN TABLE_NAME temporarytable
ON maintable.GROUPING_BY_COLUMN = temporarytable.GROUPING_BY_COLUMN
AND maintable.COLUMN_WHERE_THE_MAXIMUM_IS_NEEDED < temporarytable.COLUMN_WHERE_THE_MAXIMUM_IS_NEEDED
WHERE temporarytable.COLUMN_WHERE_THE_MAXIMUM_IS_NEEDED IS NULL
ORDER BY PRIMARY_KEY_COLUMN DESC
LIMIT 50;
@nizom333
nizom333 / createXml.php
Last active June 28, 2021 12:18
Создание XML в PHP / Bitrix
<?php
/**
* Created by Najmiddinov Nizamiddin
* Developer Full Name: Najmiddinov Nizamiddin
* Developer Mail: [email protected]
* Github: https://github.com/nizom333
* Telegram: @nizomiddin_n
* Resume page: https://dev.1c-bitrix.ru/learning/resume.php?ID=36871542-1260669
*/
@nizom333
nizom333 / xmlwriter.php
Last active July 31, 2022 18:46
XmlWriter PHP
<?php
class XmlWriter
{
private $file = '';
private $charset = '';
private $tab = 0;
private $f = null;
private $lowercaseTag = false;
@nizom333
nizom333 / todotask.jsx
Created February 5, 2022 16:07
Todo Task in ReactJS
import React from "react";
export default function App() {
const [list, setState] = React.useState([
{
id: 1,
title: "List item 1"
},
{
id: 2,