Skip to content

Instantly share code, notes, and snippets.

View starkovsky's full-sized avatar
🟢
Working from home

Vlad Starkovsky starkovsky

🟢
Working from home
View GitHub Profile
import vue from 'eslint-plugin-vue';
import {
defineConfigWithVueTs,
vueTsConfigs,
} from '@vue/eslint-config-typescript';
import vitest from '@vitest/eslint-plugin';
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting';
export default defineConfigWithVueTs(
{
/**
* Asynchronously writes data to the clipboard using the Clipboard API.
*
* @param {string | (() => Promise<string>)} stringOrPromise - A string or a promise that resolves to a string.
* @return {Promise<void>} A promise that resolves once the data is written to the clipboard.
* @throws {Error} If the Clipboard API is not supported.
* @throws {Error} If the data is a promise and the Clipboard API is not supported.
*
* @example
await copyToClipboard('Hello, world!')
@starkovsky
starkovsky / index.js
Last active September 26, 2024 08:07
test array methods js
// Crteate arr of x el
const arr = [];
const x = 1000000;
for (let i = 0; i < x; i++) {
arr.push(i);
}
// O(n^2) map -> filter
{
"editor.acceptSuggestionOnEnter": "off",
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
"editor.cursorSmoothCaretAnimation": "on",
"editor.dragAndDrop": false,
"editor.fontFamily": "JetBrains Mono",
"editor.fontLigatures": false,
"editor.fontSize": 16,
@starkovsky
starkovsky / config.yml
Created April 8, 2019 23:15
CircleCI Laravel + Vue
version: 2
defaults: &defaults
working_directory: ~/project/laravel
docker:
- image: circleci/php:7.3-node-browsers
jobs:
install:
<<: *defaults
@starkovsky
starkovsky / .gitignore_global
Created March 23, 2019 22:30 — forked from jacobtomlinson/.gitignore_global
An example global gitignore file
# An example global gitignore file
#
# Place a copy if this at ~/.gitignore_global
# Run `git config --global core.excludesfile ~/.gitignore_global`
# Compiled source #
###################
*.com
*.class
*.dll
<scheme name="Dark Peacock" version="142" parent_scheme="Default">
<option name="FONT_SCALE" value="1.0" />
<option name="EDITOR_FONT_SIZE" value="14" />
<option name="EDITOR_FONT_NAME" value="Fira Code" />
<option name="CONSOLE_FONT_NAME" value="Monospaced" />
<option name="CONSOLE_FONT_SIZE" value="12" />
<option name="CONSOLE_LINE_SPACING" value="0.8" />
<colors>
<option name="ADDED_LINES_COLOR" value="292d38" />
<option name="ANNOTATIONS_COLOR" value="8b999f" />
{
"animation_enabled": false,
"bold_folder_labels": true,
"color_scheme": "Packages/Mandarin Peacock Color Scheme/mandarin-peacock.tmTheme",
"drag_text": false,
"draw_white_space": "selection",
"font_size": 12,
"highlight_line": true,
"ignored_packages":
[