code --install-extension aaron-bond.better-comments
code --install-extension Angular.ng-template
code --install-extension bradlc.vscode-tailwindcss
code --install-extension csstools.postcss
code --install-extension dbaeumer.vscode-eslint
code --install-extension EditorConfig.EditorConfig
code --install-extension esbenp.prettier-vscode
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>KeyboardEvent</title> | |
<meta charset="UTF-8" /> | |
<script> | |
document.addEventListener("keydown", function (evt) { | |
if (evt.keyCode === 65 && evt.shiftKey) { | |
alert("SHIFT + A pressed"); |
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
// src/getPaginationMeta.ts | |
var getPreviousEnabled = (currentPage) => currentPage > 0; | |
var getNextEnabled = (currentPage, totalPages) => currentPage + 1 < totalPages; | |
var getTotalPages = (totalItems, pageSize) => Math.ceil(totalItems / pageSize); | |
var getStartIndex = (pageSize, currentPage) => pageSize * currentPage; | |
var getEndIndex = (pageSize, currentPage, totalItems) => { | |
const lastPageEndIndex = pageSize * (currentPage + 1); | |
if (lastPageEndIndex > totalItems) { | |
return totalItems - 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
import type { FC, HTMLAttributes } from "react"; | |
type BoxProps = { | |
as?: keyof JSX.IntrinsicElements; | |
} & HTMLAttributes<HTMLOrSVGElement>; | |
export const Box: FC<BoxProps> = ({ as: Component = "div", ...props }) => { | |
return <Component {...props} />; | |
}; |
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 { exec } from 'child_process' | |
const speed = 5 | |
const volume = 35 | |
// get installed voices | |
// Add-Type -AssemblyName System.speech;$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer;$speak.GetInstalledVoices() | % {$_.VoiceInfo.Name} | |
const voice = 'Microsoft Irina Desktop' | |
const message = 'Привет' | |
// filtering special characters |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Debug Nodemon", | |
"type": "node", | |
"request": "attach", | |
"processId": "${command:PickProcess}", | |
"restart": true, | |
"protocol": "inspector" |
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
{ | |
"window.title": "${dirty}${appName} ¯\\_(ツ)_/¯ ${rootName}", | |
"editor.tabSize": 2, | |
"terminal.integrated.smoothScrolling": true, | |
"editor.inlineSuggest.enabled": true, | |
"editor.cursorSmoothCaretAnimation": "on", | |
"editor.smoothScrolling": true, | |
"editor.minimap.enabled": true, | |
"editor.stickyScroll.enabled": false, | |
"editor.inlayHints.enabled": "on", |
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 | |
header('Content-Type: application/json'); | |
header('Access-Control-Allow-Credentials: false'); | |
header("Access-Control-Allow-Origin: *"); | |
require "../vendor/autoload.php"; | |
use PHPHtmlParser\Dom; | |
$dom = new Dom; |
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
[ | |
"На Рython можно написать все. На C++ можно написать Python.", | |
"Убраться на столе? Не, не слышал.", | |
"Кому и командная строка – дружественный интерфейс...", | |
"На С я могу просто делать ошибки. На С++ я могу их наследовать!", | |
"Я сам раозбарл, поичтсил и сбоарл клаиуавтру.", | |
"9 утра. — Уже работаешь? ... — Ещё работаю.", | |
"Никто не называет автомобиль двигателем, но вот системный блок процессором...", | |
"Работай! Ну пожалуйста...", | |
"Дописал свою баговую прогу, все продебажил, работает идеально...но тут — проснулся.", |