Skip to content

Instantly share code, notes, and snippets.

Avatar
🐕
wow so much

Denis Hardenberg vkdg

🐕
wow so much
  • G2R Company LTD., Social Magic, Brandomatic and Others
  • Earth, Eastern Europe
View GitHub Profile
View check_authorization.php
<?php
define('BOT_TOKEN', 'XXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXX'); // place bot token of your bot here
function checkTelegramAuthorization($auth_data) {
$check_hash = $auth_data['hash'];
unset($auth_data['hash']);
$data_check_arr = [];
foreach ($auth_data as $key => $value) {
$data_check_arr[] = $key . '=' . $value;
@vkdg
vkdg / flags.scss
Created Jun 1, 2017
Файл со стилями для локализационных флагов
View flags.scss
// Africa, Middle East, and India
.flag-am { background-image: url('../img/flags/am-30.png'); } .flag-am-x2 { background-image: url('../img/flags/am-60.png'); } // Armenia
.flag-bh { background-image: url('../img/flags/bh-30.png'); } .flag-bg-x2 { background-image: url('../img/flags/bh-60.png'); } // Bahrain
.flag-bw { background-image: url('../img/flags/bw-30.png'); } .flag-bw-x2 { background-image: url('../img/flags/bw-60.png'); } // Botswana
.flag-cm { background-image: url('../img/flags/cm-30.png'); } .flag-cm-x2 { background-image: url('../img/flags/cm-60.png'); } // Cameroun
.flag-cf { background-image: url('../img/flags/cf-30.png'); } .flag-cf-x2 { background-image: url('../img/flags/cf-60.png'); } // République Centrafricaine
.flag-ci { background-image: url('../img/flags/ci-30.png'); } .flag-ci-x2 { background-image: url('../img/flags/ci-60.png'); } // Côte d'Ivoire
.flag-eg { background-image: url('../img/flags/eg-30.png'); } .flag-eg-x2 { background-image: url('../img/flags/eg-60.png'); } // Egypt
@vkdg
vkdg / emoji.js
Created Sep 2, 2016 — forked from derekr/emoji.js
emoji.js
View emoji.js
;(function() {
function emoji(){}
// settings
emoji.img_path = 'emoji/';
emoji.sheet_path = 'sheet_64.png';
emoji.use_css_imgs = false;
emoji.text_mode = false;
emoji.include_title = false;
@vkdg
vkdg / _mixins.scss
Last active Apr 27, 2016
Mixins Build by Hardenberg
View _mixins.scss
/**
* Mixins by vkdg.ru
*/
/* Clearfix */
@mixin clear {
/**
* Example
*
* @include clear();
You can’t perform that action at this time.