Skip to content

Instantly share code, notes, and snippets.

View Eunovo's full-sized avatar
💭
Software Engineer

Oghenovo Usiwoma Eunovo

💭
Software Engineer
View GitHub Profile
@Eunovo
Eunovo / tr_partial_descriptors.md
Last active May 15, 2024 08:35
Draft post of tr() partial descriptors for delvingbitcoin.org

tr() Partial Descriptors

Previous discussions on Issue 24114 and Partial Descriptors Gist suggests two new descriptors for tr():

  • rawnode(HEXHASH) which allows the specification of a branch using the merkle hash
  • rawleaf(HEXSCRIPT,[HEXLEAFVER]) which allows the addition of raw scripts with different leaf versions

Arguments for rawnode() include:

  • Adding support for Need-to-Know-Branches (N2KB) see Jeremy's comment on 21365
  • Allowing users to specify TR trees with omitted information
  • Allowing users to simplify TR trees
@Eunovo
Eunovo / swagger.ts
Last active May 9, 2024 18:58
Creating Decorators to ease Swagger documentation
import Router from "koa-router";
export const DEFINITIONS: any = {};
let DEFINITION: any = {};
export function Definition() {
return function <T extends { new(...args: any[]): {} }>(constructor: T) {
DEFINITIONS[constructor] = {
name: constructor.name,
type: "object",
@Eunovo
Eunovo / JobProcessor.ts
Last active January 9, 2022 10:13
Code describing a system to handle CPU-intensive jobs on NodeJS servers
class JobProcessor {
private assignedJobs = new Map<String, any>();
private queue = new Queue<any>();
private nWorkers = 5;
async loadOutstandingJobs() {
// load 'pending' or 'processing' jobs from DB
const jobs = await services.Job
.findMany({
$or: [
@Eunovo
Eunovo / Gsoc2020_JBoss_Eunovo.md
Last active January 29, 2021 19:46
Summary of Eunovo's work for JBoss during GSOC 2020 Program

GSOC 2020 JBoss - Usiwoma Oghenovo (Eunovo)

Project

Offix Datastore - GraphQL-powered Offline Solution for JavaScript Web and Mobile Apps

For my GSOC 2020 program, I worked on the Offix Datastore project, a client-side store for JavaScript apps with real-time synchronization over GraphQL. By default, Offix Datastore integrates with Graphback using the GraphQL Crud specification, providing an end-to-end data synchronization solution for JavaScript apps.

Features