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
//Javascript/ECMAScript adaptation of the Intel pshufb instruction. I think. | |
//Does not work in-place. No zeroing. CC BY-NC-SA 2023 DDR0. | |
//Example: | |
/* | |
pshufb.num(0x0a0b0c0d, | |
0x01010303).toString(16).padStart(8, '0'); | |
returns: '0c0c0a0a' | |
*/ |
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
//in shaders.cfg:draw | |
set(textures, []), | |
if(liquid_textures[0], [ | |
bind_texture(liquid_textures[0], 2), | |
set(uniform_commands.u_water_tex_0, 2), | |
add(textures, [liquid_textures[0]]), | |
]), | |
if(liquid_textures[1], [ | |
bind_texture(liquid_textures[1], 3), | |
set(uniform_commands.u_water_tex_1, 3), |
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
☐ Content Creation | |
☐ Shadow mechanics | |
☐ Make a few enemy variants that respond to light/shadow. | |
☐ Redo a variant of the mosquitos as moths? | |
☐ Make a bat which wakes up in the light. | |
☐ Make some puzzle mechanics around ligthing. | |
☐ Light-reactive switch | |
☐ Light-once switch | |
☑ Dark, unnavigatable shadow | |
☐ Particle Effects Upgrade |
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
import scala.annotation.tailrec | |
// generic version | |
sealed trait List[A] { | |
@tailrec | |
final def length(counter: Int=0): Int = | |
this match { | |
case Pair(_, tail:List[A]) => tail.length(counter+1) | |
case End() => counter |
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
Building: src/kre/CameraObject.cpp | |
In file included from src/kre/imgui_impl_opengl3.cpp:67: | |
src/kre/imgui_impl_opengl3.h:38:1: error: ‘IMGUI_IMPL_API’ does not name a type; did you mean ‘IMGUI_API’? | |
38 | IMGUI_IMPL_API bool ImGui_ImplOpenGL3_Init(const char* glsl_version = NULL); | |
| ^~~~~~~~~~~~~~ | |
| IMGUI_API | |
src/kre/imgui_impl_opengl3.h:39:1: error: ‘IMGUI_IMPL_API’ does not name a type; did you mean ‘IMGUI_API’? | |
39 | IMGUI_IMPL_API void ImGui_ImplOpenGL3_Shutdown(); | |
| ^~~~~~~~~~~~~~ | |
| IMGUI_API |
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
{ | |
"info": { | |
"affector": { | |
"max_deviation_x": 2.0, | |
"type": "randomizer" | |
}, | |
"blend": "alpha_blend", | |
"blend_enable": true, | |
"blend_equation": "add", | |
"default_particle_height": 3.0, |
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
//Decreasing Sweep, 1.4s | |
BLINK, 255, 16, BLINK, 252, 16, BLINK, 250, 16, BLINK, 247, 16, BLINK, 245, 16, BLINK, 242, 16, BLINK, 240, 16, BLINK, 237, 16, BLINK, 235, 16, BLINK, 232, 16, BLINK, 230, 16, BLINK, 227, 16, BLINK, 224, 16, BLINK, 222, 16, BLINK, 219, 16, BLINK, 217, 16, BLINK, 214, 16, BLINK, 212, 16, BLINK, 209, 16, BLINK, 207, 16, BLINK, 204, 16, BLINK, 201, 16, BLINK, 199, 16, BLINK, 196, 16, BLINK, 194, 16, BLINK, 191, 16, BLINK, 189, 16, BLINK, 186, 16, BLINK, 184, 16, BLINK, 181, 16, BLINK, 179, 16, BLINK, 176, 16, BLINK, 173, 16, BLINK, 171, 16, BLINK, 168, 16, BLINK, 166, 16, BLINK, 163, 16, BLINK, 161, 16, BLINK, 158, 16, BLINK, 156, 16, BLINK, 153, 16, BLINK, 150, 16, BLINK, 148, 16, BLINK, 145, 16, BLINK, 143, 16, BLINK, 140, 16, BLINK, 138, 16, BLINK, 135, 16, BLINK, 133, 16, BLINK, 130, 16, BLINK, 128, 16, BLINK, 125, 16, BLINK, 122, 16, BLINK, 120, 16, BLINK, 117, 16, BLINK, 115, 16, BLINK, 112, 16, BLINK, 110, 16, BLINK, 107, 16, BLINK, 105, 16, BLINK, 102, 16, BLINK, 99, 16, BLINK, 9 |
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
#define END 0 | |
#define START 1 | |
#define BLINK 2 | |
#define UBLINK 3 | |
#define REPEAT 4 | |
#define LOG_SEEK 0 | |
#define LOG_EXEC 0 | |
static const byte ledPin = 5; |
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
"""Provides signalTap, a generic class to transform a pyqtSignal. | |
Usage example: Intercept a spinbox's valueChanged signal. | |
```python | |
def __init__(self): | |
valueChangedTap = signalTap(lambda val: | |
(val * self.unitValue[self.siUnit],) ) | |
self.valueChanged.connect(valueChangedTap.emit) | |
self.valueChanged = valueChangedTap | |
``` |
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
cam-json --control set - << EOF | |
{"ioMapping": {"combAnd": {"debounce": 0, "invert": 0, "source": "alwaysHigh"}, | |
"combOr1": {"debounce": 1, "invert": 0, "source": "io1"}, | |
"combOr2": {"debounce": 1, "invert": 0, "source": "io3"}, | |
"combOr3": {"debounce": 0, "invert": 0, "source": "none"}, | |
"combXOr": {"debounce": 0, "invert": 0, "source": "none"}, | |
"delay": {"debounce": 0, | |
"delayTime": 0, | |
"invert": 0, | |
"source": "toggle"}, |
NewerOlder