Skip to content

Instantly share code, notes, and snippets.

View TheAntimist's full-sized avatar

Ankush Mishra TheAntimist

View GitHub Profile
@TheAntimist
TheAntimist / AsyncInputStream.java
Created August 2, 2020 11:44 — forked from Stwissel/AsyncInputStream.java
Wrapping an InputStream into a ReadStream<Buffer> for vert.x
import io.vertx.core.*;
import io.vertx.core.buffer.Buffer;
import io.vertx.core.impl.Arguments;
import io.vertx.core.logging.Logger;
import io.vertx.core.logging.LoggerFactory;
import io.vertx.core.streams.ReadStream;
import io.vertx.core.streams.impl.InboundBuffer;
import java.io.IOException;
import java.io.InputStream;
@TheAntimist
TheAntimist / qif2csv.go
Last active December 17, 2023 21:12
Convert QIF / MS Money files into CSV. Two Scripts have been provided one in python and another in golang.
package main
import (
"bufio"
"encoding/csv"
"fmt"
"os"
"strings"
)
@TheAntimist
TheAntimist / parallel.py
Last active July 13, 2021 05:05
Parallel Python processes
__author__ = "Ankush Aniket Mishra"
__copyright__ = "Copyright 2018, Ankush A. Mishra"
__license__ = "MIT"
import os, sys
import multiprocessing as mp
from queue import Queue
from threading import Thread
def worker(queue, run):