Skip to content

Instantly share code, notes, and snippets.

View atakhan's full-sized avatar

Kadyr Atakhan atakhan

View GitHub Profile
-- day03_ex07
INSERT INTO menu VALUES(19, 2, 'greek pizza', 800);
-- day03_ex08
INSERT INTO menu (id, pizzeria_id, pizza_name, price)
VALUES ((SELECT max(id) + 1 FROM menu),
(SELECT id FROM pizzeria WHERE name = 'Dominos'),
'sicilian pizza',
900);
var simulateClickToElementById = function (id) {
var elem = document.getElementById(id);
// Create our event (with options)
var evt = new MouseEvent('click', {
bubbles: true,
cancelable: true,
view: window
});
// If cancelled, don't dispatch our event
var canceled = !elem.dispatchEvent(evt);
@atakhan
atakhan / perfect.php
Created November 3, 2018 00:36 — forked from in4in-dev/perfect.php
PHP VK audio unmask (decode extras)
<?php
//(js -> php) code. letter by letter
global $n, $i, $id;
$n = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMN0PQRSTUVWXYZO123456789+/=";
$id = 12345; //YOUR USER ID
$i = [
'v' => function($e) {
return strrev($e);