Skip to content

Instantly share code, notes, and snippets.

View llirikkcoder's full-sized avatar

Kirill Pavlyashik llirikkcoder

  • Russia, Kaliningrad
View GitHub Profile
{
"url": "https://front3.tap.fairyland.world",
"name": "tapper-mm-pro",
"iconUrl": "https://ton-connect.github.io/demo-dapp-with-react-ui/apple-touch-icon.png",
"termsOfUseUrl": "https://ton-connect.github.io/demo-dapp-with-react-ui/terms-of-use.txt",
"privacyPolicyUrl": "https://ton-connect.github.io/demo-dapp-with-react-ui/privacy-policy.txt"
}
@llirikkcoder
llirikkcoder / gist:414563e50c2633ef928b8ff6b78ebe7f
Created April 18, 2024 07:08
getProductDetailById with slug
чтобы вернуть:
{
"success": true,
"msg": "Product List",
"data": [
{
"id": 2,
"brandId": 1,
"productName": "Men`s Bathrobe Triton 10 Terry Cotton Navy",
"price": 160,
require('dotenv').config()
const express = require('express');
const cors = require('cors');
const bodyParser = require('body-parser');
const {routes } = require('./routes/routes');
const {adminRoutes} = require("./routes/adminRoutes")
const cookieParser = require('cookie-parser');
const { Pool } = require('pg');
const app = express();
@llirikkcoder
llirikkcoder / gist:aaa0637f12c0360b44f0619b9400e8e8
Last active April 9, 2024 07:24
FreedomPaySDK for nodejs
const { JSDOM } = require('jsdom');
const PUB_KEY = `-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwkpBYIq0HTwgqXTRIo0r
jpnAWeCerapYd+QZUA2ED6kLwmbSL6vmbRlWBvcZBsCNhQaGoRpUYX94fn0r7sQC
kgRWdMgxhFwgv+TCWjwdmcDO2P1NyAm8OIy4pdms0J/nE/7s50UO0RU1cjN1C//n
f3cupSw/P7QyC8cdVlEHLrE8FrulitB4JOiretnO/sMCS990glQ5VJPQMv6glztv
ZVzoXksRENdSoKfT+ZCod5kJjXNKy9mJnB9EABxdc8G5TB6pknDOiIgHKLzOrXPj
3DI4+kOxs0CQLr0lBVQQV+fiTWBoR+kvY8EwohLRiKeZxRWPv9y1OC2f80CukkGn
DwIDAQAB
@llirikkcoder
llirikkcoder / freedompay-nodejs-test
Created April 8, 2024 11:19
freedompay-nodejs-test
const { JSDOM } = require('jsdom');
// Создайте виртуальное окружение браузера с помощью jsdom
const dom = new JSDOM('<!DOCTYPE html><html><head></head><body></body></html>');
global.document = dom.window.document;
global.window = dom.window;
// Загрузите SDK FreedomPay
const script = global.document.createElement('script');
script.src = 'https://cdn.freedompay.money/sdk/js-sdk-1.0.0.js';
# Оффер Константина Курилова (КК)
## Обзор
Константин Курилов (КК) — многофункциональный специалист, который ценит новые открытия, путешествия и любознательность. С его подходом, ознаменованным кличкой "Колумб", КК стремится к созданию уникальных и инновационных решений в различных областях.
## Специализации
### Интерактивные Инсталляции и Произведения Искусства
- Разработка интерактивных инсталляций, объединяющих искусство и технологии.
@llirikkcoder
llirikkcoder / gist:8365e4699a8bb2d55ec4d7bd4c4dd1ce
Created November 25, 2023 15:29
anoya web kozindev branch install error
PS C:\_KIPOL\WEB\_WORK\_ANOYA\AnoyaWeb> yarn watch
yarn run v1.22.19
$ node webpack
10% building 2/2 modules 0 activeListening at http://127.0.0.1:9991
i 「wds」: Project is running at http://127.0.0.1:9991/
i 「wds」: webpack output is served from undefined
i 「wds」: Content not from webpack is served from C:\_KIPOL\WEB\_WORK\_ANOYA\AnoyaWeb\public
i 「wds」: 404s will fallback to /frontend/index.html
10% building 2/4 modules 2 active C:\_KIPOL\WEB\_WORK\_ANOYA\AnoyaWeb\node_modules\webpack\hot\dev-server.jsnode:internal/crypto/hash:71
this[kHandle] = new _Hash(algorithm, xofLen);
yarn add -D tshy
Found 736 errors in 44 files.
Errors Files
12 node_modules/viem/_types/accounts/types.d.ts:19
11 node_modules/viem/_types/accounts/utils/signTypedData.d.ts:22
34 node_modules/viem/_types/actions/getContract.d.ts:279
17 node_modules/viem/_types/actions/public/createContractEventFilter.d.ts:54
28 node_modules/viem/_types/actions/public/createEventFilter.d.ts:80
@llirikkcoder
llirikkcoder / gist:9f0203a97568a1e4bc274849097cec1b
Created October 23, 2023 12:56
Как поменять цвет кнопки с T из @locus/translate-react ?
import { Button } from 'antd';
import { T } from '@locus/translate-react';
<Button
icon={<Icon name='number-cont' />}
onClick={() => {
removeAllFieldsExceptReward(fields);
fields.push({
type: Reward.QuestRewardTypeText,
});
{
"query": "mutation QuestChange($input: QuestChangeReq!) {\n questChange(in: $input) {\n ...QuestRespAll\n __typename\n }\n}\nfragment QuestRespAll on QuestModel {\n id\n numberOfPasses\n bindingType\n bindingTime\n priceCurrency\n priceAmount\n locationId\n revisions {\n ...QuestRevisionRespAll\n __typename\n }\n location {\n ...LocationModelRes\n __typename\n }\n createdAt\n updatedAt\n type\n createdBy\n autoStart\n autoComplete\n star\n reward {\n ...RewardRespAll\n __typename\n }\n entryCondition\n pointers {\n ...PointerRespAll\n __typename\n }\n questType\n codeWords\n file3D\n}\nfragment QuestRevisionRespAll on QuestRevisionModel {\n id\n status\n title\n shortDescription\n description\n geolocation {\n country\n region\n __typename\n }\n image\n questId\n attachments\n contactIds\n createdAt\n updatedAt\n completing\n}\nfragment LocationModelRes on LocationModel {\n id\n createdAt\n logo\n image\n cardImage\n