Skip to content

Instantly share code, notes, and snippets.

View black1277's full-sized avatar
👁️‍🗨️
I see yuo

black1277 black1277

👁️‍🗨️
I see yuo
  • Free
  • planet Earth
View GitHub Profile
@EvgenyParomov
EvgenyParomov / todo-list.ts
Last active May 22, 2025 20:28
Realy strongly typed todo-list
type Todo = {
id: number;
text: string;
completed: boolean;
};
// Утилиты
const createTodoList = (): [] => [];
const maxId = <List extends Todo[]>(list: List): number => {
@andreberg
andreberg / python.json
Last active December 22, 2024 21:48
[VSCode: Python Snippets] Python snippet collection. #vscode #python #snippets #template #json
{
// Place your snippets for python here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active June 24, 2025 05:32
set -e, -u, -o, -x pipefail explanation