Skip to content

Instantly share code, notes, and snippets.

View nzy's full-sized avatar

Constantine Z. nzy

  • n1.studio
  • Vladivostok
View GitHub Profile
@nzy
nzy / jquery.spin.js
Created November 22, 2012 14:00 — forked from innotekservices/jquery.spin.js
jQuery Plugin for Spin.js (with overlay)
/*
You can now create a spinner using any of the variants below:
$("#el").spin(); // Produces default Spinner using the text color of #el.
$("#el").spin("small"); // Produces a 'small' Spinner using the text color of #el.
$("#el").spin("large", "white"); // Produces a 'large' Spinner in white (or any valid CSS color).
$("#el").spin({ ... }); // Produces a Spinner using your custom settings.
$("#el").spin(false); // Kills the spinner.
@nzy
nzy / init.php
Last active June 20, 2022 10:36
CatalogCondCtrlUserProps.php
<?php
AddEventHandler("catalog", "OnCondCatControlBuildList", Array("CatalogCondCtrlUserProps", "GetControlDescr"));
class CatalogCondCtrlUserProps extends \CCatalogCondCtrlComplex
{
public static function GetClassName()
{
return __CLASS__;
}
/**
@nzy
nzy / gist:4f7b4dd8a5a21755ee80f2903ea2b233
Last active March 28, 2024 10:39
CentOS libstdc++ check and build
#libstdc++.so.6: version CXXABI_1.3.8' not found
#проверяем версию, установленную в системе
sudo find / -name 'libstdc++.so.6'
strings /lib64/libstdc++.so.6 | grep '^CXXABI_'
#качаем gcc нужной версии и устанавливаем (для 1.3.8 нужен gcc 8.5)
wget https://ftp.gnu.org/gnu/gcc/gcc-8.5.0/gcc-8.5.0.tar.gz
tar xf gcc-8.5.0.tar.gz
cd gcc-8.5.0 && ./configure --disable-multilib --enable-languages=c,c++