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 / swagger.ts
Last active March 22, 2024 20:36
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