- Markdown style
[](https://youtu.be/nTQUwghvy5Q)- HTML style
<a href="http://www.youtube.com/watch?feature=player_embedded&v=nTQUwghvy5Q" target="_blank">| Interesting libraries I might like to use in a project... | |
| Asset loading: | |
| assetsys.h - virtual filesystem with ZIP backing, overlaying, etc https://github.com/mattiasgustavsson/libs/blob/master/docs/assetsys.md | |
| cute_filewatch.h - file modification watching, for runtime reloading etc https://github.com/RandyGaul/cute_headers/blob/master/cute_filewatch.h | |
| flatbuffers - data serialization, zero-copy deserialization, extensible schemas https://github.com/google/flatbuffers | |
| stb_image - https://github.com/nothings/stb/blob/master/stb_image.h | |
| tinyexr - https://github.com/syoyo/tinyexr | |
| tinygltf - https://github.com/syoyo/tinygltf | |
| tinyobjloader - https://github.com/syoyo/tinyobjloader |
| #define TEST_SIMD 3 | |
| struct Rect | |
| { | |
| float minx, miny; | |
| float maxx, maxy; | |
| }; | |
| struct RectSoA | |
| { |
| #!/usr/bin/env python | |
| """ | |
| Exports Issues from a specified repository to a CSV and/or JSON file | |
| Uses basic authentication (Github username + password) to retrieve Issues | |
| from a repository that username has access to. If a public repository, | |
| no user/password needs to be provided. Supports Github API v3. | |
| Orginally based on a script by Brian Luft at https://gist.github.com/unbracketed/3380407 | |
| This requires installing the 'requests' package (https://pypi.python.org/pypi/requests/). |
| max(-x,-y) = -min(x,y) | |
| min(-x,-y) = -max(x,y) | |
| abs(x) = abs(-x) | |
| abs(x) = max(x,-x) = -min(x,-x) | |
| abs(x*a) = if (a >= 0) abs(x)*a | |
| (a < 0) -abs(x)*a | |
| // basically any commutative operation | |
| min(x,y) + max(x,y) = x + y |
| # WWW * GPU = PIXEL I/O | |
| # X = 6 | |
| # O != 1 | |
| from itertools import permutations | |
| for digits in permutations(d for d in range(10) if d != 6): | |
| W, G, P, U, I, E, L, O = digits[:8] | |
| if (O != 1 and O * (W*100+W*10+W) * (G*100+P*10+U) == (P*100000+I*10000+6000+E*100+L*10+I)): | |
| print ("{}{}{} * {}{}{} = {}{}6{}{} {}/{}".format(W, W, W, G, P, U, P, I, E, L, I, O)) |