This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Helpers here serve as example. Change to suit your needs. | |
const VITE_HOST = 'http://localhost:5133'; | |
// For a real-world example check here: | |
// https://github.com/wp-bond/bond/blob/master/src/Tooling/Vite.php | |
// https://github.com/wp-bond/boilerplate/tree/master/app/themes/boilerplate | |
// you might check @vitejs/plugin-legacy if you need to support older browsers | |
// https://github.com/vitejs/vite/tree/main/packages/plugin-legacy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Если в логи пишется таймштамп, то при выводе логов не очень удобно - пример ниже, как можно отформатировать дату | |
cat file.log|perl -pe'use POSIX qw(strftime);s/^\[(\d+)\]/strftime("%Y-%m-%d %H:%M:%S",localtime $1\/1000)/e' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}`; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Исходные данные | |
"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}, |
NewerOlder