Skip to content

Instantly share code, notes, and snippets.

🐳
~

James jaames

🐳
~
Block or report user

Report or block jaames

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View fuzz_dict.txt
ugo
memo
ugomemo
ugoku
ugokumemo
ugokumemochou
para
parapara
paraparamanga
manga
@jaames
jaames / bfttf.py
Last active Mar 18, 2020
Animal Crossing New Horizons font decryptor for .bfttf or .bfotf files
View bfttf.py
# Animal Crossing New Horizons font decryptor for .bfttf or .bfotf files
# Usage: python3 bfttf.py input.bfttf output.ttf
from sys import argv
# might be other keys, who knows
key = [0x49, 0x62, 0x18, 0x06]
def xor(data, key):
offset = 0
@jaames
jaames / fancy-css-links.md
Last active Mar 11, 2020
Fancy CSS link underlines with inline SVGs (plus embedded animations!)
View fancy-css-links.md
View KwzParser.php
<?php
class KwzParser {
protected $data = null;
protected $offset = 0;
protected $size = 0;
public $sections = [];
public $meta = null;
public $frameMeta = null;
@jaames
jaames / screensizes.json
Last active Oct 7, 2019
list of generic screensizes pulled from https://www.screensizemap.com
View screensizes.json
[
{
"size": {
"width": 2560,
"height": 1440
},
"group": "extra-extra-large",
"devices": [
"Apple iMac 27-inch (5K)"
],
View kwpcf.php
<?php
// Project Kaeru KWPCF builder
// Written by James Daniel
// github.com/jaames / rakujira.jp
// ---- USAGE ----
// create a new kaeruPrecache instance:
//
@jaames
jaames / ppm.php
Last active Feb 14, 2020
new php PPM metadata parser
View ppm.php
<?php
namespace App\Formats;
class PPMParser {
protected $data = null;
protected $offset = 0;
public $header = [];
public $meta = null;
public $animationHeader = null;
@jaames
jaames / kwz.php
Created Sep 26, 2019
php kwz metadata parser
View kwz.php
<?php
// Project Kaeru KWZ / KWC parser
// ver 1.0
//
// Written by James Daniel
// github.com/jaames | rakujira.jp
// ----- USAGE -----
@jaames
jaames / flipnoteThumbnailServer.js
Last active Sep 26, 2019
Node mini-server that extracts thumbnail images from Flipnote Studio PPM or KWZ animation files
View flipnoteThumbnailServer.js
// requires promise-fs, gm and flipnote.js and imagemagick
// npm i promise-fs gm flipnote.js
// https://imagemagick.org/index.php
const http = require('http');
const path = require('path');
const url = require('url');
const fs = require('promise-fs');
const flipnote = require('flipnote.js/dist/node');
const gm = require('gm').subClass({imageMagick: true});
You can’t perform that action at this time.