Skip to content

Instantly share code, notes, and snippets.

@peterroelants
peterroelants / code-quality-in-agentic-software-engineering.md
Last active August 22, 2026 12:21
Code quality in agentic software engineering — version 1.26: an evidence-led report on maintainability, measurement, verification, tools, and continuous improvement (evidence through 22 August 2026)

Code Quality in Agentic Software Engineering

Why it matters, why it resists measurement, and how to govern automated development

Version 1.26 · Updated 22 August 2026 · Evidence cut-off 22 August 2026 · Links checked 22 August 2026

Written and researched by OpenAI Codex, under the direction and editorial guidance of Peter Roelants

License: Creative Commons Attribution 4.0 International

@peterroelants
peterroelants / dark-software-factories.md
Last active August 23, 2026 19:39
Dark software factories: an evidence-led report on their abstraction layer, operation, guardrails, evidence, and limits (version 3.7; 23 August 2026)

Dark Software Factories

What they are, how they work, and what it takes to run one

Version 3.7 · 23 August 2026

Written and researched by agents such as Codex, under the direction and editorial guidance of Peter Roelants

Working definition. A dark software factory is a development system in which people specify intent, constraints, and acceptable behavior while software agents produce and validate the implementation. In the strict form, people neither write nor routinely review the generated code; they operate the factory that does.

@Helw150
Helw150 / parallel_t5.py
Last active May 10, 2023 14:52
Flan T5 Parallel Usage
from transformers import AutoTokenizer, T5ForConditionalGeneration
# Model Init
n_gpu = 8
tokenizer = AutoTokenizer.from_pretrained("google/flan-ul2")
model = T5ForConditionalGeneration.from_pretrained("google/flan-ul2")
heads_per_gpu = len(model.encoder.block) // n_gpu
device_map = {
gpu: list(
range(
@junpenglao
junpenglao / theano-jax-test-drive.ipynb
Last active November 10, 2020 07:46
theano-jax test drive.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@karpathy
karpathy / pg-pong.py
Created May 30, 2016 22:50
Training a Neural Network ATARI Pong agent with Policy Gradients from raw pixels
""" Trains an agent with (stochastic) Policy Gradients on Pong. Uses OpenAI Gym. """
import numpy as np
import cPickle as pickle
import gym
# hyperparameters
H = 200 # number of hidden layer neurons
batch_size = 10 # every how many episodes to do a param update?
learning_rate = 1e-4
gamma = 0.99 # discount factor for reward
@EderSantana
EderSantana / CATCH_Keras_RL.md
Last active May 24, 2026 13:57
Keras plays catch - a single file Reinforcement Learning example
@karpathy
karpathy / min-char-rnn.py
Last active August 23, 2026 11:33
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
@syhw
syhw / dnn.py
Last active June 23, 2026 19:39
A simple deep neural network with or w/o dropout in one file.
"""
A deep neural network with or w/o dropout in one file.
License: Do What The Fuck You Want to Public License http://www.wtfpl.net/
"""
import numpy, theano, sys, math
from theano import tensor as T
from theano import shared
from theano.tensor.shared_randomstreams import RandomStreams
@r9y9
r9y9 / pylearn2_amazon_linux_ami_with_nvidia_setup.sh
Created July 20, 2014 14:59
Pylearn2 setup script for Amazon Linux AMI with NVIDIA GRID GPU Driver
#!/bin/bash
# Pylearn2 setup script for Amazon Linux AMI with NVIDIA GRID GPU Driver.
# http://goo.gl/3KeXXW
# not tested
sudo yum update -y
sudo yum install -y emacs tmux python-pip
sudo yum install -y python-devel git blas-devel lapack-devel
@kastnerkyle
kastnerkyle / gmmhmm.py
Last active July 4, 2025 10:50
GMM-HMM (Hidden markov model with Gaussian mixture emissions) implementation for speech recognition and other uses
# (C) Kyle Kastner, June 2014
# License: BSD 3 clause
import scipy.stats as st
import numpy as np
class gmmhmm:
#This class converted with modifications from https://code.google.com/p/hmm-speech-recognition/source/browse/Word.m
def __init__(self, n_states):
self.n_states = n_states