Skip to content

Instantly share code, notes, and snippets.

View chandujr's full-sized avatar

Chandu JR chandujr

View GitHub Profile
@chandujr
chandujr / psxhash.py
Last active August 29, 2025 15:55
Calculate RetroAchievements hash for PlayStation games.
#!/usr/bin/env python3
"""
psxhash.py - Calculate RetroAchievements hash for PlayStation games.
Make it executable if needed:
chmod +x psxhash.py
Usage:
./psxhash.py game.cue
@chandujr
chandujr / pcecdhash.py
Created August 26, 2025 12:12
Calculate RetroAchievements hash for PC Engine CD / TurboGrafx-CD games.
#!/usr/bin/env python3
"""
pcecdhash.py - Calculate RetroAchievements hash for PC Engine CD / TurboGrafx-CD games.
Make it executable if needed:
chmod +x pcecdhash.py
Usage:
./pcecdhash.py game.cue
import java.nio.ByteBuffer;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.Pixmap;
import com.badlogic.gdx.graphics.Pixmap.Blending;
import com.badlogic.gdx.graphics.Pixmap.Format;
import com.badlogic.gdx.utils.BufferUtils;
import com.badlogic.gdx.utils.GdxRuntimeException;
@chandujr
chandujr / RadialSprite.java
Created August 2, 2016 10:21
This class helps to create a circular progress indicator. This is an updated version of the code by forum user Xoppa. You can see the original code here: https://github.com/xoppa/world/blob/master/src/com/xoppa/android/misc/RadialSprite.java
/**
* An updated version of the code by forum user Xoppa.
* You can see the original code here: https://github.com/xoppa/world/blob/master/src/com/xoppa/android/misc/RadialSprite.java
**/
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.g2d.TextureRegion;