Skip to content

Instantly share code, notes, and snippets.

Leonid Rezvitsky Rezvitsky

Block or report user

Report or block Rezvitsky

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View wall.php
function get_wall(int $owner_id): array
{
$db = DbMysqlProvider::getConnection();
$db->where('owner_id', $owner_id);
$db->where('active', 1);
$db->orderBy('date', 'DESC');
$raw_wall = $db->get('wall');
View json.json
{
"response": {
"count": 6,
"items": [
{
"id": 7,
"owner_id": 1,
"text": "",
"date": 1590245162,
"likes": {
View audio.js
import { Howl } from 'howler'
import { PlayIcon } from 'vue-feather-icons'
export default {
props: {
audio: Object
},
data () {
return {
isTargeted: null,
View 1.php
if (!empty($fields['fetch'])) {
$fetch = explode(',', $fields['fetch']);
foreach ($fetch as $key => $value) {
$data[$value] = $value;
if (!empty($data[$value])) {
if (in_array($data[$value], ['photo', 'cover'])) {
if (!empty($get_data['first_name'])) {
$users[$data[$value]] = get_photo_by_id($get_data[$data[$value]])['photo'];
}
if (!empty($get_data['name'])) {
View lk-one.phtml
<?php
$user_id = intval($_GET['id']);
$user = (UserData($user_id)) ? UserData($user_id) : $mh['user'];
?>
<div class="panel" id="panel">
<div class="container">
View lk.phtml
<?php
$user_id = intval($_GET['id']);
$user = (UserData($user_id)) ? UserData($user_id) : $mh['user'];
?>
<div class="panel" id="panel">
<div class="container">
View music-player.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
.post-content__music-wrap {
display: flex;
flex-direction: column;
View bot-brain.php
<?php
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Credentials: true");
header("Access-Control-Allow-Methods: POST, GET, OPTIONS");
header("Access-Control-Allow-Headers: Content-Type, Authorization, X-Requested-With");
header("Content-Type: application/json; charset=utf-8");
$command = mb_strtolower($_GET['command']);
$tokens = explode(" ", $command);
View voice.js
import SineWaves from 'sine-waves'
import { MicIcon, XCircleIcon } from 'vue-feather-icons'
export default {
data () {
return {
isVoice: false,
isSpeech: true,
synth: window.speechSynthesis,
synthUtterance: new window.SpeechSynthesisUtterance(),
View voice-ivinete.js
export default {
data () {
return {
isVoice: false,
isStart: false,
tts: window.speechSynthesis,
voiceList: null,
selectedVoice: null,
textToSpeech: 'Привет! Я гидеон, голосовой ассистент команды ивинете',
speed: 2
You can’t perform that action at this time.