Skip to content

Instantly share code, notes, and snippets.

View Krykunov's full-sized avatar
🏠
Working from home

Ihor Krykunov Krykunov

🏠
Working from home
View GitHub Profile
@Krykunov
Krykunov / try-catch.ts
Created March 20, 2025 08:17 — forked from t3dotgg/try-catch.ts
Theo's preferred way of handling try/catch in TypeScript
// Types for the result object with discriminated union
type Success<T> = {
data: T;
error: null;
};
type Failure<E> = {
data: null;
error: E;
};
@Krykunov
Krykunov / Add_Open_Bash_context_menu.reg
Last active December 15, 2018 13:25
Добавление пункта "Открыть окно Bash здесь" для работы с Ubuntu shell в текущей папке Windows 10
Windows Registry Editor Version 5.00
; Created by:Shawn Brink
; Created on: August 13th 2016
; Tutorial: http://www.tenforums.com/tutorials/60125-open-bash-window-here-context-menu-add-windows-10-a.html
[HKEY_CLASSES_ROOT\Directory\Background\shell\Bash]
@="Open Ubuntu Bash window here"
@Krykunov
Krykunov / button.sass
Created December 10, 2017 19:20 — forked from agragregra/button.sass
Button Sass Styles (Universal Starter)
.button
display: inline-block
border: none
color: #fff
text-decoration: none
background-color: $accent
padding: 15px 45px
font-size: 13px
text-transform: uppercase
font-weight: 600