Skip to content

Instantly share code, notes, and snippets.

View ashis0013's full-sized avatar
πŸ˜΅β€πŸ’«
On existential crisis spiral

Ashis Paul ashis0013

πŸ˜΅β€πŸ’«
On existential crisis spiral
  • Blox.xyz
  • Kolkata, India
View GitHub Profile
@ashis0013
ashis0013 / retry.kt
Created January 18, 2023 05:36
Possible Implementation of withRetry
import arrow.core.Either
import kotlin.jvm.Throws
interface Retry<T> {
fun shouldRetry(): Boolean
fun run(body: () -> T): Either<T, Exception>
}
class ExponentialBackoffRetry<T>(private val maxRetry: Int = 5, private val initDelay: Long = 200): Retry<T> {
private var retries = 0
@ashis0013
ashis0013 / .zshrc
Last active June 18, 2025 15:27
My zsh aliases and functions
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="fwalch"
plugins=(git)
source $ZSH/oh-my-zsh.sh
alias zshconfig="nvim ~/.zshrc"
alias ohmyzsh="nvim ~/.oh-my-zsh"
alias v="nvim"
alias gcom="git commit -am"
@ashis0013
ashis0013 / fizzbuzz.c
Created February 10, 2022 13:49
FizzBuzz in c but mimicking functional programming
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
typedef struct _list {
int head;
struct _list* tail;
} list;