This file contains 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 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=("[email protected]", "[email protected]", "[email protected]") | |
ITEMS=("Услуги") | |
# My data | |
MY_EMAIL="[email protected]" | |
MY_INN="1183128101" |
This file contains 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 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 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 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 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 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" | |
); |
This file contains 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 { createBrowserHistory } from "history"; | |
export const browserHistory = createBrowserHistory(); |
This file contains 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 { debounce } from "patronum"; | |
import { | |
Effect, | |
Event, | |
guard, | |
} from "effector"; | |
/** | |
* отложенный запрос для поиска: ждет 1 сек после последнего события | |
* и если символов > 2 или 0 передает запрос | |
* @param searchEvent событие, которое надо дебаунсить |
NewerOlder