Skip to content

Instantly share code, notes, and snippets.

View aakarsh's full-sized avatar
🤪

Aakarsh Nair aakarsh

🤪
View GitHub Profile
@aakarsh
aakarsh / alpha-zero.py
Created February 28, 2024 19:31
David Silver - AlphaZero pseudocode
"""Pseudocode description of the AlphaZero algorithm."""
from __future__ import google_type_annotations
from __future__ import division
import math
import numpy
import tensorflow as tf
from typing import List
@aakarsh
aakarsh / stars.h
Last active September 8, 2022 06:53
some comments about records that went into the algorithm
debian@oresat-dev:~/oresat-star-tracker-software$ git diff oresat_star_tracker/beast/stars.h
diff --git a/oresat_star_tracker/beast/stars.h b/oresat_star_tracker/beast/stars.h
index c9a1ada..9d21c80 100644
--- a/oresat_star_tracker/beast/stars.h
+++ b/oresat_star_tracker/beast/stars.h
@@ -288,19 +288,35 @@ public:
ssize_t read;
char *line = NULL;
size_t len = 0;
-
@aakarsh
aakarsh / CloudsResources.md
Created May 12, 2020 22:58 — forked from pixelsnafu/CloudsResources.md
Useful Resources for Rendering Volumetric Clouds

Volumetric Clouds Resources List

  1. A. Schneider, "Real-Time Volumetric Cloudscapes," in GPU Pro 7: Advanced Rendering Techniques, 2016, pp. 97-127. (Follow up presentations here, and here.)

  2. S. Hillaire, "Physically Based Sky, Atmosphere and Cloud Rendering in Frostbite" in Physically Based Shading in Theory and Practice course, SIGGRAPH 2016. [video] [course notes] [scatter integral shadertoy]

  3. [R. Högfeldt, "Convincing Cloud Rendering – An Implementation of Real-Time Dynamic Volumetric Clouds in Frostbite"](https://odr.chalmers.se/hand

@aakarsh
aakarsh / thrust_demo.py
Created April 25, 2020 05:04 — forked from bryancatanzaro/thrust_demo.py
PyCUDA/Thrust interop
import pycuda
import pycuda.autoinit
import pycuda.gpuarray as gpuarray
import numpy as np
from codepy.cgen import *
from codepy.bpl import BoostPythonModule
from codepy.cuda import CudaModule
#Make a host_module, compiled for CPU
@aakarsh
aakarsh / How-to-Win-Friends-and-Influence-People.md
Created April 21, 2020 21:53 — forked from justincampbell/How-to-Win-Friends-and-Influence-People.md
Principles of How to Win Friends and Influence People

How to Win Friends and Influence People

Fundamental Techniques in Handling People

  1. Don't criticize, condemn, or complain.
  2. Give honest and sincere appreciation.
  3. Arouse in the other person an eager want.
  4. Never show others that you are not interested in what they have to say.