This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // type i | |
| message DAMFile { | |
| repeated Chunk chunk = 1; | |
| repeated QuantizedChunk quantized_chunk = 2; | |
| } | |
| // type "o" | |
| message Chunk { | |
| required Vertices vertices = 1; | |
| required Faces faces = 2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| // munged from https://github.com/simontime/Resead | |
| namespace sead | |
| { | |
| class Random | |
| { |
This is a short post that explains how to write a high-performance matrix multiplication program on modern processors. In this tutorial I will use a single core of the Skylake-client CPU with AVX2, but the principles in this post also apply to other processors with different instruction sets (such as AVX512).
Matrix multiplication is a mathematical operation that defines the product of
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This file is automatically generated, but you can add your own variables here too. | |
| // Syntax: SET_VAR(variable_name, default, low_limit, upper_limit, slider_exponent) | |
| // In code you can read the variable with: GET_VAR(variable_name) | |
| SET_VAR(tower_height, 520.0f, 0.0f, 3000.0f, 1.0f) | |
| SET_VAR(KSpring, 520.0f, 1.0f, 3000.0f, 1.0f) | |
| SET_VAR(WireRadius, 2.0f, 0.1f, 34.0f, 1.0f) | |
| SET_VAR(volcanic_sun_x, 0.088000, -20.0f, 20.0f, 1.0f) | |
| SET_VAR(mothership_sun_x, 2.026000, -5.0f, 5.0f, 1.0f) | |
| SET_VAR(mothership_sun_y, 0.507000, -5.0f, 5.0f, 1.0f) | |
| SET_VAR(wire_fog_exp, 0.0f, 0.0f, 100.0f, 1.0f) |
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [package] | |
| name = "procaddress" | |
| version = "0.1.0" | |
| authors = [] | |
| [dependencies] | |
| libc = "0.2.33" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extern crate minifb; | |
| extern crate time; | |
| use minifb::{Key, Scale, WindowOptions, Window}; | |
| use std::f64::consts::PI; | |
| fn circle(x: f64, y: f64, x_offset: f64, y_offset: f64, rad: f64) -> bool { | |
| let x_distance = x - x_offset; | |
| let y_distance = y - y_offset; |
NewerOlder