Skip to content

Instantly share code, notes, and snippets.

View NostraDavid's full-sized avatar
🏠
Working from home

NostraDavid NostraDavid

🏠
Working from home
View GitHub Profile
@NostraDavid
NostraDavid / warcraft-credits.csv
Created July 24, 2021 21:09
Table of Warcraft 1,2,3,TFT and Vanilla WoW Credits
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Insert Order Warcraft version Subtitle Role Person
1 1 Orcs & Humans Executive Producer Allen Adham
2 1 Orcs & Humans Producer Patrick Wyatt
3 1 Orcs & Humans Programmer Patrick Wyatt
4 1 Orcs & Humans Programmer Bob Fitch
5 1 Orcs & Humans Programmer Mike Morhaime
6 1 Orcs & Humans Programmer Jesse McReynolds
7 1 Orcs & Humans Artist Stuart Rose
8 1 Orcs & Humans Artist Samwise Didier
9 1 Orcs & Humans Artist Ron Millar
@NostraDavid
NostraDavid / invsqrt.c
Created December 30, 2020 09:45
Inverse Square Root by Greg Walsh
float invSqrt(float x)
{
union {
float x;
int i;
} u;
float xhalf = 0.5f * x;
u.x = x;
u.i = 0x5f3759df - (u.i >> 1);
@NostraDavid
NostraDavid / kleur.py
Last active November 25, 2020 09:24
Kleur.py, but its based on kleur.lua
import doctest
def kleur(h: float):
"""
This is a hue function that converts a float in the range of [0-1] to a string
Behold! The Doctest!
>>> kleur(0.598)
<!-- This is a collection of HTML used in the HTML (5) Standard: https://html.spec.whatwg.org/ -->
<!DOCTYPE html>
<html lang=en>
<head>
<title>Test document</title>
<base href=http://www.example.com/news/index.html target=_self />
<!-- target="_blank|_self|_parent|_top|framename -->
<meta charset=utf-8>
<meta name=viewport content="width=device-width, initial-scale=1.0">