Skip to content

Instantly share code, notes, and snippets.

View Insayt's full-sized avatar
🏠
Working from home

Alex Insayt Insayt

🏠
Working from home
  • Rostov-on-Don
View GitHub Profile
'use strict';
angular.module('Yeopen')
.service('$videoApi', ['$modal', '$rootScope', '$state', 'AbstractService', 'Routes',
function ($modal, $rootScope, $state, AbstractService, Routes) {
var videoApi = new AbstractService(Routes.gallery);
angular.extend(videoApi, {
create: function(data) {
.directive('embedVideoSrc', ['$compile','VideoService', function ($compile, VideoService) {
return {
link: function(scope, element, attrs) {
scope.srcVideo = attrs.embedVideoSrc;
var template = '';
var serviceVideo = VideoService.getVideoServiceByUrl(attrs.embedVideoSrc);
console.log(attrs);
attrs.embedVideoHeight = attrs.embedVideoHeight || 315;
@Insayt
Insayt / Artisan.php
Created May 7, 2018 23:51
Laravel Cheat Sheet
php artisan --help OR -h
php artisan --quiet OR -q
php artisan --version OR -V
php artisan --no-interaction OR -n
php artisan --ansi
php artisan --no-ansi
php artisan --env
// -v|vv|vvv Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
php artisan --verbose
@Insayt
Insayt / test
Created November 23, 2018 06:34
// Исходные данные
"1550869200000": {"subscribers": 0, "conversion": 0, "subscribers_day_growth": 0},
"1550782800000": {"subscribers": 1, "conversion": 1, "subscribers_day_growth": 1},
"1550696400000": {"subscribers": 2, "conversion": 2, "subscribers_day_growth": 2},
"1550610000000": {"subscribers": 3, "conversion": 3, "subscribers_day_growth": 3},
"1550523600000": {"subscribers": 4, "conversion": 4, "subscribers_day_growth": 4},
"1550437200000": {"subscribers": 5, "conversion": 5, "subscribers_day_growth": 5},
"1550350800000": {"subscribers": 6, "conversion": 6, "subscribers_day_growth": 6},
"1550264400000": {"subscribers": 7, "conversion": 7, "subscribers_day_growth": 7},
"1550178000000": {"subscribers": 8, "conversion": 8, "subscribers_day_growth": 8},
@Insayt
Insayt / test
Last active November 23, 2018 10:32
backend_1_474f56b381c3 | Дневная 11/23/2018, 12:00:00 AM
backend_1_474f56b381c3 | Дневная 11/24/2018, 12:00:00 AM
backend_1_474f56b381c3 | Дневная 11/25/2018, 12:00:00 AM
backend_1_474f56b381c3 | Дневная 11/26/2018, 12:00:00 AM
backend_1_474f56b381c3 | Дневная 11/27/2018, 12:00:00 AM
backend_1_474f56b381c3 | Дневная 11/28/2018, 12:00:00 AM
backend_1_474f56b381c3 | Дневная 11/29/2018, 12:00:00 AM
backend_1_474f56b381c3 | Неделя 11/29/2018, 12:00:00 AM
backend_1_474f56b381c3 | Дневная 11/30/2018, 12:00:00 AM
backend_1_474f56b381c3 | Дневная 12/1/2018, 12:00:00 AM
@Insayt
Insayt / ttt
Last active November 23, 2018 13:34
backend_1_474f56b381c3 | Дневная 11/24/2018, 12:00:00 PM
backend_1_474f56b381c3 | Дневная 11/25/2018, 12:00:00 PM
backend_1_474f56b381c3 | Дневная 11/26/2018, 12:00:00 PM
backend_1_474f56b381c3 | Дневная 11/27/2018, 12:00:00 PM
backend_1_474f56b381c3 | Дневная 11/28/2018, 12:00:00 PM
backend_1_474f56b381c3 | Дневная 11/29/2018, 12:00:00 PM
backend_1_474f56b381c3 | Дневная 11/30/2018, 12:00:00 PM
backend_1_474f56b381c3 | Неделя 11/30/2018, 12:00:00 PM
backend_1_474f56b381c3 | Дневная 12/1/2018, 12:00:00 PM
backend_1_474f56b381c3 | Дневная 12/2/2018, 12:00:00 PM
const { request } = require('graphql-request');
const sendDataToLkMedia = (user, account, order) => {
// сообщаем lk.tooligram.com об оплате
const postData = `mutation {
createClient(
tooliUserId: "${order.user_id}",
tooliAccountId: "${order.account_id}",
instagramLogin: "${order.insta_login}",
function getShortcodeFromTag (tag) {
let id = bigInt(tag.split('_', 1)[0]);
const alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_';
let remainder;
let shortcode = '';
while (id.greater(0)) {
let division = id.divmod(64);
id = division.quotient;
shortcode = `${alphabet.charAt(division.remainder)}${shortcode}`;
.class public final Lcom/facebook/f/a/d;
.super Ljava/lang/Object;
.source ""
# interfaces
.implements Lorg/apache/http/conn/ssl/X509HostnameVerifier;
# instance fields
.field private final a:Lcom/instagram/realtimeclient/RealtimeClient$6$1;
<template>
<div class="add-task">
<div class="card">
<div class="card-body">
<form @submit.prevent="savePost">
<div class="add-task-form">
<div class="add-task-form__left">
<div class="upload-file"
:class="{ disabled: finalImages.length >= 10 || (stories && finalImages.length >= 1), '_full': stories }">
<label for="exampleFormControlFile1">