Skip to content

Instantly share code, notes, and snippets.

import struct
import unittest
import moderngl
_static = {
'context': None
}
import struct
import moderngl as gl
def test_vao_bind(array_length, loop_count, context):
'''
The program sums the first `count` floats for each vertex.
For example, when `count == 3`, it sums 0 + 1 + 2 = 3 for vertex 1,
@wpk-
wpk- / keybase.md
Last active September 18, 2019 08:20

Keybase proof

I hereby claim:

  • I am wpk- on github.
  • I am wpk (https://keybase.io/wpk) on keybase.
  • I have a public key ASDIAskilAjPDnhKdLKNapGwbW40fE-49G9cZE-8-QcuPwo

To claim this, I am signing this object:

@wpk-
wpk- / recursive-chmod.sh
Created May 14, 2014 08:47
Recursive chmod, properly
# recursive chmod 660 on files
find . -type f -exec chmod 660 {} \;
# recursive chmod 770 on folders
find . -type d -exec chmod 770 {} \;
# and if we need to adjust only very specific files
find . -type f -name '*.py' -exec chmod 770 {} \;