Skip to content

Instantly share code, notes, and snippets.

View gamble27's full-sized avatar
❄️
Knowledge is power

Olha Moskanova gamble27

❄️
Knowledge is power
View GitHub Profile
@gamble27
gamble27 / yin_yang.py
Created September 27, 2019 20:18 — forked from akiross/yin_yang.py
Drawing the yin-yang with Python3 turtle.
from turtle import *
RAD = 100
RAD2 = RAD / 2
RAD6 = RAD / 6
degrees() # Switch to degrees
# Draw the circle, radius 100, half black
fillcolor('black')
begin_fill()
<?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;