Skip to content

Instantly share code, notes, and snippets.

View valvesss's full-sized avatar
⛓️
Developing the Future

Vitor Alves valvesss

⛓️
Developing the Future
View GitHub Profile
@valvesss
valvesss / microgpt.py
Created May 20, 2026 14:19 — forked from karpathy/microgpt.py
microgpt
"""
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
@valvesss
valvesss / SharePointFileHandler.py
Created March 11, 2021 00:40
Sharepoint File Handler - Upload/Delete/Download
import json, requests
class DriveSession(object):
def __init__(self, driveID, graphURI):
self.graphURI = graphURI + '/me/drives/' + driveID + '/root:/'
def authenticate(self, grantType, clientID, clientSecret, scope,
userName, password, contentType, microsoftURL):
payload = {
"grant_type": grantType,
package tests
import (
"testing"
"io/ioutil"
"log"
"bytes"
"github.com/go-interpreter/wagon/wasm"
"github.com/go-interpreter/wagon/exec"