Skip to content

Instantly share code, notes, and snippets.

View Kamensky124's full-sized avatar
💭
I will complete your project on time

Kamensky Andrey Kamensky124

💭
I will complete your project on time
View GitHub Profile
@PEZ
PEZ / fuzzy.cljs
Last active May 20, 2025 20:58
Joyride script for adding fuzzy search in files with instant previews to VS Code
(ns fuzzy
(:require ["vscode" :as vscode]
[clojure.string :as string]
[joyride.core :as joyride]
[promesa.core :as p]))
(defn- get-configured-exclude-patterns! []
(->> ["search.exclude" "files.exclude"]
(mapcat (fn [config-key]
(-> (.get (vscode/workspace.getConfiguration) config-key)
@safronman
safronman / error-utils.ts
Created July 1, 2022 11:34
axios catch TS error
import { setAppErrorAC, SetAppErrorActionType } from '../../app/app-reducer';
import { Dispatch } from 'redux';
import axios, { AxiosError } from 'axios';
import { AppThunk } from '../../app/store';
import { packsAPI } from '../../api/packs-api';
export const errorUtils = (e: Error | AxiosError<{error: string}>, dispatch: Dispatch<SetAppErrorActionType>) => {
const err = e as Error | AxiosError<{ error: string }>
if (axios.isAxiosError(err)) {
const error = err.response?.data ? err.response.data.error : err.message
@qoomon
qoomon / youtube_clean_watch_later_videos.js
Last active August 1, 2025 23:32
Clean YouTube Watch Later Videos
// Version 2.0.1
// This script will remove all videos from watch later list
//
// Usage
//
// #1 go to https://www.youtube.com/playlist?list=WL
// #2 run following script in your browser console
(async function() {
const playlistName = document.querySelector('.metadata-wrapper #container #text')?.textContent || document.querySelector('#text')?.textContent
/*
* Square Every Digit
* https://www.codewars.com/kata/546e2562b03326a88e000020
*/
// Solution 1
// toString - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString
// join - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join
function squareDigits(num){
" Мой актуальный конфиг тут: https://github.com/alexey-goloburdin/dotfiles
@david-crespo
david-crespo / rain-world.md
Last active September 19, 2025 23:43
How to Enjoy Rain World

2025-05-06: The canonical version of this guide is now https://crespo.business/posts/how-to-enjoy-rain-world/


How to Enjoy Rain World

A spoiler-free guide to the spoilers

TL;DR: play as long as you can without help, until you get frustrated. At that point, the recommended region order helps a lot without spoiling anything but region names. If you can't find the next region, the world map (only showing region connections, no detail) will tell you what direction to look in.

@ignitz
ignitz / delete_watchlater_in_youtube_LEGACY.js
Created January 20, 2020 13:55
Delete entire playlist Watch Later on Youtube
var items = $('body').getElementsByClassName("yt-uix-button yt-uix-button-size-default yt-uix-button-default yt-uix-button-empty yt-uix-button-has-icon no-icon-markup pl-video-edit-remove yt-uix-tooltip");
function deleteWL(i) {
setInterval(function() {
items[i].click();
}, 500);
}
for (var i = 0; i < 1; ++i)
{
"suggest.noselect": false,
"coc.preferences.formatOnSaveFiletypes": [
"javascript",
"typescript",
"typescriptreact",
"json",
"javascriptreact",
"typescript.tsx",
"graphql"
" Specify a directory for plugins
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree'
"Plug 'tsony-tsonev/nerdtree-git-plugin'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'ryanoasis/vim-devicons'
Plug 'airblade/vim-gitgutter'
@mimukit
mimukit / SSH key setup.md
Last active October 11, 2024 11:38
Quick guide for SSH setup on macOS
  1. Setup ssh key on your pc (skip this step if you already have it)
    ssh-keygen -t rsa -b 4096 -C "[email protected]"
    
    • Start the ssh-agent in the background.
    eval "$(ssh-agent -s)"
    
  • Add your SSH private key to the ssh-agent and store your passphrase in the keychain.