Skip to content

Instantly share code, notes, and snippets.

@Centrinia
Centrinia / scales.txt
Created February 16, 2019 15:55
C tonic musical scales
0 : 0:00:00 ::
6 - 6
C F# C F# C
1 : 0:00:01.750000 ::
5 - 7
C F C F C
"A","a"
"baccalaureate's","baccalaureates"
"bacchanalian's","bacchanalians"
"balalaika's","balalaikas"
"Alabamian's","Alabamians"
"Alabaman's","Alabamans"
"whatchamacallit's","whatchamacallits"
"Madagascan's","Madagascans"
"Appalachian's","Appalachians"
"catamaran's","catamarans"
@Centrinia
Centrinia / box.frag
Created December 5, 2018 11:16
Clip View Vulkan
#version 450
#extension GL_ARB_separate_shader_objects : enable
layout(location = 0) in vec3 frag_color;
layout(location = 0) out vec4 out_color;
void main() {
out_color = vec4(frag_color, 1.0);
}
#include <stdio.h>
int isqrt(int n)
{
int xn;
int x;
if (n <= 1) {
return 0;
}
import numpy as np
ELEMENT_ARRAY_BUFFER = 0x8893
ARRAY_BUFFER = 0x8892
BYTE = 0x1400
UNSIGNED_BYTE = 0x1401
SHORT = 0x1402
UNSIGNED_SHORT = 0x1403
INT = 0x1404
--- a 2017-12-03 23:17:04.920486211 -0500
+++ b 2016-12-31 20:17:01.076807602 -0500
@@ -8,11 +8,12 @@
from itertools import count, takewhile
from random import randrange
from math import log
+from functools import reduce
try: from gmpy2 import mpz; mpzv, inttypes = 2, (int, long, type(mpz(1)))
except ImportError:
2 5
4 17
6 41
12 197
14 281
60 7699
64 8893
96 22039
100 24133
102 25237
GF(2^1) = Z_2[x] / (x + 1)
GF(2^2) = Z_2[x] / (x^2 + x + 1)
GF(2^3) = Z_2[x] / (x^3 + x + 1)
GF(2^4) = Z_2[x] / (x^4 + x + 1)
GF(2^5) = Z_2[x] / (x^5 + x^2 + 1)
GF(2^6) = Z_2[x] / (x^6 + x + 1)
GF(2^7) = Z_2[x] / (x^7 + x + 1)
GF(2^8) = Z_2[x] / (x^8 + x^4 + x^3 + x + 1)
GF(2^9) = Z_2[x] / (x^9 + x + 1)
GF(2^10) = Z_2[x] / (x^10 + x^3 + 1)
#!/usr/bin/env python3
"""
Make an OpenGL projection matrix
"""
import numpy as np
def canonical_matrix(*points):
Creating thread 0
Creating thread 1
Creating thread 2
Creating thread 3
Creating thread 4
Creating thread 5
Creating thread 6
Creating thread 7
Creating thread 8
Creating thread 9