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
| { | |
| "AFG": {"iso2": "AF", "iso3": "AFG", "name": "Afghanistan"}, | |
| "ALB": {"iso2": "AL", "iso3": "ALB", "name": "Albania"}, | |
| "ALG": {"iso2": "DZ", "iso3": "DZA", "name": "Algeria"}, | |
| "AND": {"iso2": "AD", "iso3": "AND", "name": "Andorra"}, | |
| "ANG": {"iso2": "AO", "iso3": "AGO", "name": "Angola"}, | |
| "ANT": {"iso2": "AG", "iso3": "ATG", "name": "Antigua and Barbuda"}, | |
| "ARG": {"iso2": "AR", "iso3": "ARG", "name": "Argentina"}, | |
| "ARM": {"iso2": "AM", "iso3": "ARM", "name": "Armenia"}, | |
| "ARU": {"iso2": "AW", "iso3": "ABW", "name": "Aruba"}, |
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
| import { HumanMessage, SystemMessage } from "@langchain/core/messages"; | |
| import { ChatGroq } from "@langchain/groq"; | |
| import { GigaChat } from "langchain-gigachat"; | |
| import { Agent } from "node:https"; | |
| const httpsAgent = new Agent({ | |
| rejectUnauthorized: false, | |
| }); | |
| const { GIGACHAT_API_KEY } = process.env; |
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
| [keys.normal." "] | |
| z = ":pipe-to repl.sh" |
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
| #!/bin/bash | |
| XMLFILE=$1 | |
| EMAILS=("test1@mail.ru", "test2@mail.ru", "test3@mail.ru") | |
| ITEMS=("Услуги") | |
| # My data | |
| MY_EMAIL="email@test.ru" | |
| MY_INN="1183128101" |
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 app = new oak.Application(); | |
| // API routes | |
| const apiRouter = new oak.Router({ prefix: "/api" }); | |
| apiRouter.get("/users", async (context) => { | |
| context.response.body = await service.getUsers(); | |
| }); | |
| app.use(apiRouter.routes()); | |
| app.use(apiRouter.allowedMethods()); |
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
| access_token=`curl -d "client_id=admin-cli" -d "client_secret=#####" -d "grant_type=client_credentials" "http://localhost:8080/realms/my-realm/protocol/openid-connect/token" | jq -r .access_token` | |
| curl -X POST -H "Authorization: Bearer $access_token" -H 'Accept: application/json' -H 'Content-Type: application/json' -d @u.json http:/localhost:8080/admin/realms/my-realm/partialImport |
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
| javascript:PDFViewerApplication.download() |
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
| import { DatePicker } from "antd"; | |
| import moment, { Moment } from "moment"; | |
| import { useEffect, useState } from "react"; | |
| export type FormFieldProps<InVal, OutVal> = { | |
| value?: InVal; | |
| disabled?: boolean; | |
| onChange?: (value?: OutVal) => void; | |
| }; | |
| export type FormField<InVal, OutVal = InVal> = React.FC< |
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
| sed -i -e "s/[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}/1.1.1.1/g" /etc/resolv.conf |
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
| import { forward } from "effector"; | |
| import { createGate } from "effector-react"; | |
| import { createCached } from "store/helpers"; | |
| export const delegationSelectGage = createGate(); | |
| const [doFetch, $delegation, $loading] = createCached<void, Data[]>( | |
| fetchDelegations, | |
| "delegation" | |
| ); |
NewerOlder