Skip to content

Instantly share code, notes, and snippets.

View Newol1's full-sized avatar

Mykola Butko Newol1

  • Kiev
  • 01:00 (UTC +03:00)
View GitHub Profile
# remove specific file from git cache
git rm --cached filename
# remove all files from git cache
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
<?
require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/header.php");
require_once ($_SERVER['DOCUMENT_ROOT'] . '/local/classes/WinCalc/WinCalc.php');
$winCalc = new \Integrations\WinCalc\WinCalc(\CCrmOwnerType::DealName);
$res = $winCalc->updateSingleOffer(397801);
echo '<pre>';
//while($ob = $res->fetch()) {
<?
require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/header.php");
require_once ($_SERVER['DOCUMENT_ROOT'] . '/local/classes/WinCalc/WinCalc.php');
$winCalc = new \Integrations\WinCalc\WinCalc(\CCrmOwnerType::DealName);
$res = $winCalc->updateSingleOffer(397801);
echo '<pre>';
//while($ob = $res->fetch()) {
@Newol1
Newol1 / popUp.js
Last active March 12, 2020 15:58
JavaScript Self Libraries
function popUp(popUp_content, popUp_container) {
let elem = $(popUp_content);
let container = $(popUp_container)
if (!container.hasClass("show__pop-up-container")) {
container.addClass("show__pop-up-container");
}
$(document).on("mouseup", function em(e) {
if (!elem.is(e.target) && elem.has(e.target).length === 0 && container.hasClass("show__pop-up-container")) {