Skip to content

Instantly share code, notes, and snippets.

@vicrucann
vicrucann / bezier.frag
Last active February 24, 2024 23:00
GLSL shader that allows to draw smooth and thick Bezier lines in 3D; added fog effect; using OpenSceneGraph for visualization
#version 330
in VertexData{
vec4 mColor;
} VertexIn;
void main(void)
{
gl_FragColor = VertexIn.mColor;
}
@gilankpam
gilankpam / redux-request-success-failure.js
Last active May 17, 2022 14:04
redux-request-success-failure.js
function reduxHelper (actionName, fn) {
if (typeof actionName !== 'string') {
throw new Error('actionName must be a string')
}
if (typeof fn !== 'function') {
throw new Error('fn must be a function')
}
const actionNameUpper = actionName.toUpperCase()
const actionRequest = actionNameUpper + '_REQUEST'
const actionSuccess = actionNameUpper + '_SUCCESS'
@joymon
joymon / scientific_debugging_template.md
Last active May 21, 2024 19:17
Scientific debugging template to track progress

Status - [Open/Closed]

Overview

  • Reported on - [Date]
  • Last updated on - [Date]
  • Environment - [All/Staging/Prod/QA/Dev]
  • Investigators
    • Person 1
    • Person 2

Description