This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| # Comment PPM -> NPF or Image script for Sudomemo | |
| # github.com/Sudomemo | www.sudomemo.net | |
| # | |
| # Written by James Daniel | |
| # github.com/jaames | rakujira.jp | |
| # | |
| # Command Line Args: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ADPCM decoder implementation based on https://github.com/jwzhangjie/Adpcm_Pcm/blob/master/adpcm.c | |
| const indexTable = [ | |
| -1, -1, -1, -1, 2, 4, 6, 8, | |
| -1, -1, -1, -1, 2, 4, 6, 8 | |
| ]; | |
| const stepSizeTable = [ | |
| 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, | |
| 19, 21, 23, 25, 28, 31, 34, 37, 41, 45, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="player"> | |
| <div class="player__stage" ref:player on:click="togglePlay()"> | |
| <video | |
| class="player__video" | |
| src="{{src}}" | |
| loop="{{meta.loop}}" | |
| ref:video | |
| on:play="_video_play()" | |
| on:pause="_video_pause()" | |
| on:timeupdate="_video_timeupdate()" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from sys import argv | |
| import hashlib | |
| import numpy as np | |
| xorkey = [ | |
| 0xF7, 0x4C, 0x6A, 0x3A, 0xFB, 0x82, 0xA6, 0x37, | |
| 0x6E, 0x11, 0x38, 0xCF, 0xA0, 0xDD, 0x85, 0xC0, | |
| 0xC7, 0x9B, 0xC4, 0xD8, 0xDD, 0x28, 0x8A, 0x87, | |
| 0x53, 0x20, 0xEE, 0xE0, 0x0B, 0xEB, 0x43, 0xA0, | |
| 0xDB, 0x55, 0x0F, 0x75, 0x36, 0x37, 0xEB, 0x35, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="x-ua-compatible" content="IE=edge,chrome=1"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>PegaSwitch</title> | |
| <meta name="description" content="PegaSwitch -- an exploit toolkit for the Nintendo Switch"> | |
| <meta name="twitter:card" content="summary"> | |
| <meta property="og:site_name" content="PegaSwitch"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=256"> | |
| </head> | |
| <body> | |
| <div id="readout"></div> | |
| <script type="text/javascript"> | |
| var readout = document.getElementById("readout"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // ====== Mii Data Parser ====== | |
| // | |
| // Based on the documentation found here: | |
| // http://wiibrew.org/wiki/Mii_Data#Mii_format | |
| // | |
| // Written by James Daniel | |
| // github.com/jaames | rakujira.jp | |
| // ====== Usage ====== | |
| // |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // ====== Mario Kart RKG (ghost trial data) Parser ====== | |
| // | |
| // Based on the documentation found here: | |
| // http://wiki.tockdom.com/wiki/RKG | |
| // | |
| // Written by James Daniel | |
| // github.com/jaames | rakujira.jp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| from PIL import Image | |
| from sys import argv | |
| # format structure: | |
| # header | |
| # 4 bytes seem to be a checksum of some kind? they're definitely not a timestamp | |
| # 8 bytes are some kind of magic/ident? (10RC1000 for me) | |
| # 4 bytes padding ? |
NewerOlder