Skip to content

Instantly share code, notes, and snippets.

View zanderswai's full-sized avatar
🏠
Working

Alexander zanderswai

🏠
Working
View GitHub Profile
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@ebundala
ebundala / mpesa-example.ts
Created January 26, 2024 11:53
Mpesa OpenApi node with nestjs
import { HttpService, Injectable } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { Cron, CronExpression } from '@nestjs/schedule';
import { PrismaClient } from '@prisma/client';
import { writeFile } from 'fs/promises';
import NodeRsa from 'node-rsa';
import { join } from 'path';
import { AppLogger } from 'src/app-logger/app-logger.module';
import { HTTP_CLIENT_CONFIG } from './mpesa-tz.module';
@Injectable()