Skip to content

Instantly share code, notes, and snippets.

const config = require('./config.js');
const Discord = require('discord.js');
const client = new Discord.Client();
const queue = require('queue')
require('dotenv').config({path: '../.env'});
async function removeUnusedChannels(categoryChannels) {
let countChannels = categoryChannels.size;
let emptyChannels = categoryChannels.filter((channel) => {
по ui:
1. выпадашка с Sign Out должна закрываться и при клике вне своей области, не только при клике на аватар
2. Модальное Add Site не закрывает ни по Esc (хотя есть tip про Esc), ни по клику вне модальном, только по крестику.
3. данные в колонке LAST CHECK никак не обновляются при check/check uptime. Кнопки действий должны игнорировать run_interval_in_minutes и любые другие ограничения, т.е запускать проверку в force режиме, иначе в них нет смысла
4. уведомления которые вылазят при нажатии check кнопок работают только если залогинится и потом обновить страницу. Т.е сразу после логина если кликнуть на них то не показываются уведомления
5. если находясь на второй странице удалить сайт то будет такой артефакт https://monosnap.com/direct/ciPXYKA9VMn921QulgzIul9OBaU2tF . Тоже самое будет если на этой странице добавить сайт. "Showing 10 to 20 of 13 results" — должно быть "Showing 10 to 13 of 13 results"
6. интерфейс не отзывчивый — нет ни одного лоадера, при клике на Check непонятно кликнулась она или нет, т.к ин
@Rhincodon
Rhincodon / readme.md
Last active November 29, 2018 15:35
Speech recognition library

Library that we created: speech-to-text.min.js/speech-to-text.js. It's not open source. Its a wrapper that unify all APIs from different speech recognition services into one API.

How it works

  1. If we gonna use azure/google we need to load some dependencies
<!-- For Azure -->
<script src="https://speech-poc.awsext.berlitz.net/lib/microsoft.cognitiveservices.speech.sdk.bundle.js"></script>
@Rhincodon
Rhincodon / cookie.php
Created November 14, 2018 16:07
cookie.php
@Rhincodon
Rhincodon / act.php
Created November 12, 2018 12:21
act.php
<?php
namespace App\Services;
use GuzzleHttp\Client;
class BungieApiService
{
private $client;
@Rhincodon
Rhincodon / presenter.js
Created November 5, 2018 14:47
presenter.js
document.addEventListener("DOMContentLoaded", function () {
var CONFIG = {
FPVERSION: "9.0.0",
COURSE_WIDTH: "100%",
COURSE_HEIGHT: "100%",
TARGET: "PresenterContent",
SWFOBJ_NAME: 'Presenter',
REDIRECT_URL: "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
}
<script src="https://speech-poc.awsext.berlitz.net/libs/speech-to-text.js"></script>
<!-- Azure Only -->
<script src="https://speech-poc.awsext.berlitz.net/libs/microsoft.cognitiveservices.speech.sdk.bundle.js"></script>
<script>
// INITIALIZATION
const speechToText = new SpeechToText();
speechToText.addService('azure', new SpeechToTextAzure({
.reset-this * {
animation : none;
animation-delay : 0;
animation-direction : normal;
animation-duration : 0;
animation-fill-mode : none;
animation-iteration-count : 1;
animation-name : none;
animation-play-state : running;
animation-timing-function : ease;
*
border none
outline none
box-sizing border-box
@font-face
font-family "SeroCompPro"
src url(../fonts/ff_sero_web_pro_bold/SeroWebPro-Bold.eot), url(../fonts/ff_sero_web_pro_bold/SeroWebPro-Bold.woff) format('woff'), url(../fonts/ff_sero_web_pro_bold/SeroCompPro-Bold.ttf) format('truetype')
font-weight bold
font-style normal
<?php
namespace App\Console\Commands;
use GuzzleHttp\Promise\EachPromise;
use Illuminate\Console\Command;
use GuzzleHttp\Client;
use Psr\Http\Message\ResponseInterface;
class ParseProducts extends Command