Skip to content

Instantly share code, notes, and snippets.

View MadaShindeInai's full-sized avatar
:electron:
Working from home

Sergei MadaShindeInai

:electron:
Working from home
View GitHub Profile
@MadaShindeInai
MadaShindeInai / classDescription.ts
Last active April 24, 2022 15:49
Complete class defenition/description using Typescript
// interface ensure class instance shape. Notice that the interface includes the parameters of the constructor, not the properties
interface Vehicle {
make: string;
color: string;
doors: number;
accelerate(speed: number): string;
brake(): string;
turn(direction: 'left' | 'right'): string;
}
@kkdeok
kkdeok / git_branch_terminal_prompt_for_zsh.md
Last active December 20, 2022 20:41
Git Branch Terminal Prompt for zsh (MacOS Catalina)

Git Branch Terminal Prompt for zsh (MacOS Catalina)

sample image

function parse_git_branch() {
    git branch 2> /dev/null | sed -n -e 's/^\* \(.*\)/[\1]/p'
}

setopt PROMPT_SUBST
@EmilyRosina
EmilyRosina / jsconfig.json
Created November 13, 2020 20:46
VSCode config to get CTRL + click and Class intellisense working everywhere
{
// This file is required for VSCode to understand webpack aliases
"module": "es6",
"moduleResolution": "node",
"compilerOptions": {
"resolveJsonModule": true,
"jsx": "preserve",
"module": "commonjs",
"target": "es5",
"sourceMap": true,
@jasonm23
jasonm23 / xterm-256color.svg
Last active July 10, 2024 20:18
Xterm 256color mode color chart, organised into sections. (used on Wikipedia/xterm)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.