Skip to content

Instantly share code, notes, and snippets.

View jrod-disco's full-sized avatar
👾
React, Pixi, JS, C# and more...

Jose R. Rodriguez jrod-disco

👾
React, Pixi, JS, C# and more...
View GitHub Profile
@jrod-disco
jrod-disco / digital_rain_reloaded_anim.h
Last active October 12, 2022 03:15
QMK Firmware RGB Matrix Animation - Update to stock "digital rain" animation (aka. The Matrix falling code effect) - It looks like this: https://www.youtube.com/watch?v=-RTvFIs4bV8
// This is is a modification/enancement of the stock digital_rain animation
// It's a bit of a hack, but it turned out pretty nice
// You can now adjust the speed and hue of the animation using the standard config values
#if defined(RGB_MATRIX_FRAMEBUFFER_EFFECTS) && !defined(DISABLE_RGB_MATRIX_DIGITAL_RAIN_RELOADED)
RGB_MATRIX_EFFECT(DIGITAL_RAIN_RELOADED)
# ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS
# ifndef RGB_DIGITAL_RAIN_DROPS
@jrod-disco
jrod-disco / shakerFactory.ts
Created October 9, 2020 20:25
TypeScript shaker for PIXI.JS // Shake a screen, shake a sprite, shake your booty. // Could easily be converted for use outside of PIXI
/**
* A simple functional shaker. Shake a screen, shake a sprite, shake your booty.
* Written by: Jose (@JoskerDu) Rodriguez
*/
// Type alias for PIXI Container or array of containers
type Target = PIXI.Container[] | PIXI.Container;
// Prop interface for shake function
export interface ShakeProps {
@jrod-disco
jrod-disco / soundSprite.js
Last active October 1, 2024 19:51
An attempt at handling sound sprites in Expo
import { Audio } from 'expo-av';
import { AssetLibrary } from '../AssetLibrary';
/**
* Factory function to create sound sprites.
*
* Takes configuration object on init.
*
* Once configured a key can be played like so
* spriteInstance.play('validKeyDefinedInConfig')'
@jrod-disco
jrod-disco / config.h
Created November 19, 2020 04:23
Planck Key Map for QMK
#include "../../config.h"
#pragma once
#ifdef AUDIO_ENABLE
# define STARTUP_SONG SONG(E1M1_DOOM)
# define GOODBYE_SONG SONG(ZELDA_PUZZLE)
# define MUSIC_ON_SONG SONG(CABBAGE_SONG)
// #define MUSIC_OFF_SONG SONG(MARIO_GAMEOVER)
// #define STARTUP_SONG SONG(NO_SOUND)