Skip to content

Instantly share code, notes, and snippets.

View CPPAlien's full-sized avatar
🎯
Focusing

Chris CPPAlien

🎯
Focusing
View GitHub Profile
@CPPAlien
CPPAlien / pg-pong-pytorch.py
Last active September 22, 2024 23:18 — forked from karpathy/pg-pong.py
Training a Neural Network ATARI Pong agent with Policy Gradients from raw pixels
import torch
import torch.nn as nn
import torch.optim as optim
import gym
import numpy as np
import pickle
# Hyperparameters
H = 200 # Number of hidden layer neurons
batch_size = 10 # Every how many episodes to do a param update?
@CPPAlien
CPPAlien / webgl-first-example.html
Last active June 16, 2022 08:29
webgl simplest example
<html>
<body>
<canvas id="c" width="400" height="300"></canvas>
</body>
<script id="vertex-shader-2d" type="notjs">
attribute vec4 a_position;
void main() {
gl_Position = a_position;
}

Keybase proof

I hereby claim:

  • I am cppalien on github.
  • I am cppalien (https://keybase.io/cppalien) on keybase.
  • I have a public key ASBpR56Dc48IV5D0tODXFusjd0_4YjcrI941uQ55Uh9cSwo

To claim this, I am signing this object: