Skip to content

Instantly share code, notes, and snippets.

@vitaly-t
vitaly-t / retry-async.ts
Last active April 13, 2025 09:21
retry-async
/**
* Retry-status object type, for use with RetryCB.
*/
export type RetryStatus<D = unknown> = {
/**
* Retry index, starting from 0.
*/
readonly index: number,
/**
@aamiaa
aamiaa / RevertNewLayout.md
Last active April 24, 2025 14:08
Revert New Discord Layout

The original snippet no longer works!

On 02/09/2024 at around 8pm UTC, Discord flipped an experiment (2023-09_mobile_redesign_override_toggles) which ignores the layout toggle that this script relied on.

If you want to continue using the old layout, you can either use a modded mobile client (such as Vendetta) to disable that experiment, or downgrade to an old version of the app.

Method 1 - Downgrading (Android)

Tip

Use this one if you want a fast, beginner-friendly solution and don't mind using a version from November 2023

  1. Download version 205.15 of Discord mobile app from ApkMirror

Переход с Java на Kotlin: Полное руководство

Kotlin - это статически типизированный язык программирования, который полностью совместим с Java. Он предлагает множество улучшений и новых функций, которые делают разработку более удобной и продуктивной. В этой статье мы рассмотрим некоторые из ключевых различий между Java и Kotlin, а также примеры использования этих функций.

0. Основные типы данных и переменные в Kotlin

Типы данных

Kotlin имеет множество встроенных типов данных для представления чисел, символов, логических значений и строк. Например, есть типы:

@0xjac
0xjac / private_fork.md
Last active April 27, 2025 12:31
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git