Skip to content

Instantly share code, notes, and snippets.

View BekNaji's full-sized avatar

Bekzod BekNaji

  • Multibank
  • Tashkent, Uzbekistan
View GitHub Profile
@BekNaji
BekNaji / options.php
Last active January 12, 2022 09:55
Simple options.php file for bitrix module || Простой файл options.php для модуля bitrix
<?php
/*
* Author: Bekzod Najmiddinov
* Email: [email protected]
*/
$moduleId = "module_id";
$siteId = "";
@zohaib304
zohaib304 / inkwell.dart
Created March 27, 2021 21:46
Flutter Inkwell splash radius
Container(
margin: EdgeInsets.symmetric(horizontal: 10),
child: InkWell(
customBorder: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10),
),
onTap: () {},
child: Ink(
height: 100,
decoration: BoxDecoration(
@BekNaji
BekNaji / apexchart-tenders.php
Last active March 24, 2021 06:20
Candlestick - apexchart
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Статистика тендеров</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<!-- <script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>-->
<script src="apex-chart.js"></script>
@jackabox
jackabox / AutoComplete.php
Last active October 10, 2024 14:44
Livewire Autocomplete Component
<?php
namespace App\Http\Livewire;
use App\Models\Account;
use Livewire\Component;
class AccountAutocomplete extends Component
{
public $query= '';
@Padilo300
Padilo300 / bx install bitrix24 install app
Created October 6, 2020 11:27
bx install bitrix24 install app
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<?php
if (ini_get('short_open_tag') == 0 && strtoupper(ini_get('short_open_tag')) != 'ON')
die('Error: short_open_tag parameter must be turned on in php.ini');
?><?
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);
@ini_set('pcre.backtrack_limit', 1024*1024);
define('IP_LIMIT_DEFAULT', '#IP'.'_LIMIT_PLACEHOLDER#');
define('IP_LIMIT', '#IP_LIMIT_PLACEHOLDER#');
@larsneo
larsneo / viewer.html
Last active November 5, 2024 11:30 — forked from jsprpalm/viewer.html
Pinch zoom implementation for PDF.js viewer
<!-- Goes into viewer.html just before ending </body> -->
<script>
let pinchZoomEnabled = false;
function enablePinchZoom(pdfViewer) {
let startX = 0, startY = 0;
let initialPinchDistance = 0;
let pinchScale = 1;
const viewer = document.getElementById("viewer");
const container = document.getElementById("viewerContainer");
const reset = () => { startX = startY = initialPinchDistance = 0; pinchScale = 1; };
@joeytwiddle
joeytwiddle / async-await-forEach-alternatives.md
Last active November 13, 2024 13:53
Do not use forEach with async-await

Do not use forEach with async-await

TLDR: Use for...of instead of forEach() in asynchronous code.

For legacy browsers, use for...i or [].reduce()

To execute the promises in parallel, use Promise.all([].map(...))

The problem

@danielmcclure
danielmcclure / .htaccess
Last active January 12, 2022 09:53
How to Remove Conflicting X-FRAME-OPTIONS Headers via .htaccess on Apache
# Select one of the following options - Security decreases from top to bottom.
Header append X-FRAME-OPTIONS "DENY"
Header append X-FRAME-OPTIONS "SAMEORIGIN"
Header append X-FRAME-OPTIONS "ALLOW-FROM https://example.com/"
@proweb
proweb / index.html
Last active October 15, 2024 21:13
Как разместить две формы Битрикс 24 на сайте.
<div id="my_container"></div> <!-- Form container -->
<!-- JS code from CRM Bitrix24 -->
<!-- Added "node" parametr -->
<script id="bx24_form_inline" data-skip-moving="true">
(function(w,d,u,b){w['Bitrix24FormObject']=b;w[b] = w[b] || function(){arguments[0].ref=u;
(w[b].forms=w[b].forms||[]).push(arguments[0])};
if(w[b]['forms']) return;
s=d.createElement('script');r=1*new Date();s.async=1;s.src=u+'?'+r;
h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);
})(window,document,'http://cp.silaev.bx/bitrix/js/crm/form_loader.js','b24form');