I hereby claim:
- I am emily33901 on github.
- I am f1ssi0n (https://keybase.io/f1ssi0n) on keybase.
- I have a public key ASD9Z54u3ucXC04iOxwbu0za2i5uzoOqFMrcTEULoUZzYAo
To claim this, I am signing this object:
use std::io::{self, Read}; | |
use std::sync::Once; | |
use std::time::{SystemTime, UNIX_EPOCH}; | |
use bincode; | |
use log::{error, info, trace, LevelFilter}; | |
use rand::{thread_rng, Rng}; | |
use serde::{Deserialize, Serialize}; | |
#[cfg(windows)] | |
use simple_logging; |
def cube3d(): | |
win = GraphWin("3d", 200, 200, False) | |
cube = [glm.vec3(1, 1, 1), | |
glm.vec3(-1, 1, 1), | |
glm.vec3(1, -1, 1), | |
glm.vec3(1, 1, -1), | |
glm.vec3(-1, -1, 1), | |
glm.vec3(-1, 1, -1), | |
glm.vec3(1, -1, -1), |
I hereby claim:
To claim this, I am signing this object:
import ctypes | |
# quakes "fast" inverse square root | |
def Q_rsqrt(value): | |
# base values | |
c_value = ctypes.c_float(value) | |
c_value2 = ctypes.c_float(value * 0.5) | |
# cast to long so that we can bit manipulate the number |