Skip to content

Instantly share code, notes, and snippets.

View ngoomie's full-sized avatar
🪲
the scungo

ngoomie ngoomie

🪲
the scungo
  • Canada
  • 23:53 (UTC -06:00)
View GitHub Profile
@MineBartekSA
MineBartekSA / catbox
Last active March 18, 2024 21:03
CatBox - An implementation of catbox.moe API in Bash
#!/bin/bash
#
# CatBox v2.0
# An implementation of catbox.moe API in Bash
# Author: MineBartekSA
# Gist: https://gist.github.com/MineBartekSA/1d42d6973ddafb82793fd49b4fb06591
# Change log: https://gist.github.com/MineBartekSA/1d42d6973ddafb82793fd49b4fb06591?permalink_comment_id=4596132#gistcomment-4596132
#
# MIT License
#
import java.awt.Color
import java.io.File
import javax.imageio.ImageIO
import kotlin.math.roundToInt
const val N = 1.0
fun main(args: Array<String>) {
val img = ImageIO.read(File(args[0]))
val map = Array(img.width) { arrayOfNulls<Vector>(img.height) }
@SciresM
SciresM / ACNL.cs
Created May 7, 2017 02:19
Encryption/Decryption of Animal Crossing: New Leaf's Bell/Money values.
private static uint DecryptACNLMoney(ulong money)
{
// Unpack 64-bit value into (u32, u16, u8, u8) values.
var enc = (uint)(money & 0xFFFFFFFF);
var adjust = (ushort)((money >> 32) & 0xFFFF);
var shift_val = (byte)((money >> 48) & 0xFF);
var chk = (byte)((money >> 56) & 0xFF);
// Validate 8-bit checksum
if ((((enc >> 0) + (enc >> 8) + (enc >> 16) + (enc >> 24) + 0xBA) & 0xFF) != chk) return 0;
@z3ntu
z3ntu / README.md
Last active April 4, 2024 23:32
KDE 1 Arch Linux install guide
QMA 4 GEM 2007/01/11
IIDX GOLD GLD 2007/02/21
pop'n 15 G15 2007/04/25
Otomedius GGG 2007/11/02
DJ Troopers HDD 2007/12/19
QMA 5 HAL 2008/01/12
pop'n 16 H16 2008/03/24
Horseriders G23 2008/04/09
GFDM V5 H32/H33 2008/06/18
Empress I00 2008/11/19