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
{ | |
"openapi": "3.0.1", | |
"info": { | |
"title": "ML.Analytics", | |
"version": "v1" | |
}, | |
"paths": { | |
"/api/analytics/clients/{clientId}/instant": { | |
"get": { | |
"tags": [ |
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
root = true | |
[*.md] | |
trim_trailing_whitespace = false | |
[*] | |
charset = utf-8 | |
indent_style = space | |
indent_size = 2 | |
end_of_line = lf |
This file has been truncated, but you can view the full file.
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
definitions: | |
io.k8s.api.admissionregistration.v1.MutatingWebhook: | |
description: >- | |
MutatingWebhook describes an admission webhook and the resources and | |
operations it applies to. | |
properties: | |
admissionReviewVersions: | |
description: >- | |
AdmissionReviewVersions is an ordered list of preferred | |
`AdmissionReview` versions the Webhook expects. API server will try to |
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
# Format staged js/ts files before commit | |
npx prettier --write $(git ls-files --modified -u | awk '{ print $4 }' | grep -E -i '.(t|j)sx?') | |
# variant 2 | |
prettier --write $(git diff --name-only --cached | grep -E -i '.(t|j)sx?') |
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 getNextIndex = (currentIndex, length) => (currentIndex + 1) % length; | |
const getPreviousIndex = (currentIndex, length) => (currentIndex - 1 + length) % length; |
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 type = window.matchMedia("(min-width: 1025px)").matches ? 'desktop' : 'mobile'; | |
// https://caniuse.com/#feat=getboundingclientrect | |
window.getBoundingClientRect() |
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 { useState, useRef, useEffect, useCallback } from 'react'; | |
export function useCaretPosition< | |
T extends HTMLInputElement | HTMLTextAreaElement = HTMLInputElement | |
>() { | |
const node = useRef<T>(null); | |
const [start, setStart] = useState(0); | |
const [end, setEnd] = useState(0); | |
const updateCaret = useCallback(() => { |
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
// https://windscribe.com/ | |
(function() { | |
var width, height, largeHeader, canvas, ctx, points, target, animateHeader = true; | |
// Main | |
initHeader(); | |
initAnimation(); | |
addListeners(); |
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
Write | |
# sudo dd oflag=direct if=/home/qu/Downloads/manjaro-budgie-17.1.11-stable-x86_64.iso of=/dev/sdc1 bs=1M status=progress; sync | |
Flesh format | |
# sudo umount /dev/sdc1 && sudo mkfs.vfat /dev/sdc1 | |
Programs for write image to flash | |
1) ETCHER | |
2) UNETBOOTIN |