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
@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
Created Sep 26, 2019
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});
@jaames
jaames / ffmpeg.js_makefile
Last active Aug 1, 2019
custom ffmpeg.js makefile
View ffmpeg.js_makefile
# Compile FFmpeg and all its dependencies to JavaScript.
# You need emsdk environment installed and activated, see:
# <https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html>.
# Modified by Jaames:
# - disable WASM output in the latest version of emscripten (1.38.31)
# - add the pad videofilter
# - add wav and pcm_s16le decoder
PRE_JS = build/pre.js
@jaames
jaames / dailylogochallenge.txt
Created Jun 17, 2019
Logo challenge list from dailylogochallenge.com -- for people like me who dislike inbox clutter
View dailylogochallenge.txt
1. Rocketship Logo (Aerolite, Axis, Comet, Quasar)
2. Hot Air Balloon (Lift, Crown (the very top part of the balloon), Whoosh)
3. Panda Logo (Panda Global, Bamboo, Endangered Panda Conservation)
4. Single Letter Logo
5. Driverless Car Logo (Autonome, Vrooom, Onward)
6. Coffee Shop (Dylan's Coffee, The Roasted Bean, Tazza)
7. Fashion Brand Wordmark (OAKAO, Deities, Adams & Abigail)
8. Ski Mountain Logo (Brass Peak, Mount Blanco, Traverse, Snowdrop)
9. Streaming Music Startup (Beat, Pitch, Bass)
10. Flame Logo (Sizzle, Liight, Flint & Flame)
View 3ds_packet_capture.md

Requirements

You will need a 3DS running Luma CFW, as well as a computer that is capable of creating an access point or running a proxy.

SSL Module Patch

It is necessary to disable Root CA Verification in order to capture all 3DS traffic. We recommend doing this with SciresM's 3DS-SSL-Patch.

For ease of use, you can download this premade code.ips patch and place it at /luma/titles/0004013000002F02/code.ips on your 3DS' SD card. Make sure that you've enabled Luma's game patching feature by holding down the select button while powering on your 3DS.

@jaames
jaames / ptcl.py
Created Apr 2, 2019
unfinished nintendo particle format (.ptcl) parser
View ptcl.py
# .ptcl parser for miitomo
# heavily unfinished, i couldn't work out how to find subtexture sizes
import struct
import numpy as np
from PIL import Image
class PTCLSection:
def __init__(self, magic=b'', offset=0, size=0, data_offset=0):
self.magic = magic
You can’t perform that action at this time.