Skip to content

Instantly share code, notes, and snippets.

View mfiyalka's full-sized avatar

Mykhailo Fiialka mfiyalka

View GitHub Profile
Згенеровано за допомогою сервісу https://getbtn.com/widget.php
Якщо віджет відобажатиметься не коректно, то необхідно буде відкоригувати css в коді сайту
Скрипт вставити між тегами body:
<script type="text/javascript">
var arrgetbtn=[];
arrgetbtn.push({"title":"Facebook Messenger","icon":"fwidgethelp-facebook-messenger","link":"https://m.me/sicilia.te.ua","target":"_blank","color":"#FFFFFF","background":"#6699FF"});
arrgetbtn.push({"title":"Telegram","icon":"fwidgethelp-telegram_v2","link":"https://t.me/SiciliaTeBot","target":"_blank","color":"#FFFFFF","background":"#27A5E7"});
arrgetbtn.push({"title":"Viber","icon":"fwidgethelp-viber","link":"viber://pa?chatURI=sicilite","target":"_blank","color":"#FFFFFF","background":"#8456A7"});
var WidGetButtonOptions = {
@mfiyalka
mfiyalka / Show header dropdown
Created March 3, 2018 11:26
Show header dropdown
// main.php
...
<?php Pjax::begin(['id' => 'cart_widget']) ?>
<?= CartWidget::widget() ?>
<?php Pjax::end() ?>
...
// віджет
...
<?php
namespace mfiyalka\telegram\common\google;
use Google_Client;
use Google\Spreadsheet\ServiceRequestFactory;
use Google\Spreadsheet\DefaultServiceRequest;
use Google\Spreadsheet\SpreadsheetService;
/**
@mfiyalka
mfiyalka / urlManager
Created January 17, 2018 20:52
Setting urlManager in Yii2
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'rules' => [
'' => 'site/index',
'<_a:login|logout>' => 'site/<_a>',
'<_c:[\w\-]+>' => '<_c>/index',
'<_c:[\w\-]+>/<id:\d+>' => '<_c>/view',
'<_c:[\w\-]+>/<_a:[\w-]+>' => '<_c>/<_a>',
pragma solidity ^0.4.11;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public constant returns (uint256);
0x9bD1a03E481145C9fa37685Ca044817F89EF4eA9