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
| #!/bin/python3 | |
| # manhattan.py | |
| # Solves "paths of Manhattan (2d)" problem | |
| # | |
| # Copyright(C) 2020 rw-r-r-0644 | |
| # This file is under GNU GPLv2 | |
| import math, sys | |
| def tartaglia(n, k): |
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
| #!/bin/python3 | |
| from PyPDF2 import PdfFileWriter, PdfFileReader | |
| from Levenshtein import distance | |
| import sys | |
| import re | |
| # Requires PyPDF2 and python-Levenshtein. | |
| # Install them with `pip install PyPDF2 python-Levenshtein | |
| # Maximum distance between the same content located in |
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
| f(a,b){b&&( | |
| a=f(b,a%b)) | |
| ;return a;} |
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
| v8296: 0x0D40AA71 | |
| v8325: 0x0D40AA31 | |
| v8339: 0x0D40AC5D | |
| v8342: 0x0D40AC61 | |
| v8354: 0x0D40AC5B | |
| v8377: 0x0D40AC6D |
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
| #include <Servo.h> | |
| #define CONSOLE_RESET_TIMEOUT 40000 | |
| /////////////////////////////////////////////////////////// | |
| // Automatic restart timer | |
| /////////////////////////////////////////////////////////// | |
| unsigned long timerBase = 0; | |
| bool timerEnabled = true; |
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
| #!/bin/bash | |
| export REDNAND_DEV=/dev/sdc | |
| dd if=$REDNAND_DEV of=./slc.img bs=512 skip=$((0x00000500)) count=$((0x00100000)) status=progress | |
| dd if=$REDNAND_DEV of=./slccmpt.img bs=512 skip=$((0x00100500)) count=$((0x00100000)) status=progress | |
| dd if=$REDNAND_DEV of=./mlc.img bs=512 skip=$((0x00200500)) count=$((0x03b34000)) status=progress |
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
| [binaries] | |
| c = '/opt/devkitpro/devkitPPC/bin/powerpc-eabi-gcc' | |
| cpp = '/opt/devkitpro/devkitPPC/bin/powerpc-eabi-g++' | |
| ar = '/opt/devkitpro/devkitPPC/bin/powerpc-eabi-gcc-ar' | |
| strip = '/opt/devkitpro/devkitPPC/bin/powerpc-eabi-strip' | |
| pkgconfig = '/opt/devkitpro/portlibs/wiiu/bin/powerpc-eabi-pkg-config' | |
| [properties] | |
| c_args = ['-DESPRESSO','-I/opt/devkitpro/portlibs/wiiu/include','-I/opt/devkitpro/portlibs/ppc/include','-O2','-mcpu=750','-meabi','-mhard-float'] | |
| c_link_args = ['-L/opt/devkitpro/portlibs/wiiu/lib','-L/opt/devkitpro/portlibs/ppc/lib'] |
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
| 0D010000 4 NAND_MAIN_CTRL | |
| 0D010004 4 NAND_MAIN_CONFIG | |
| 0D010008 4 NAND_MAIN_ADDR1 | |
| 0D01000C 4 NAND_MAIN_ADDR2 | |
| 0D010010 4 NAND_MAIN_DATABUF | |
| 0D010014 4 NAND_MAIN_ECCBUF | |
| 0D010018 4 NAND_BANK | |
| 0D010030 4 NAND_BANK_CTRL | |
| 0D010034 4 NAND_INT_MASK | |
| 0D010040 4 NAND_BANK0_CTRL |
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
| _pkgname='wut' | |
| pkgname="${_pkgname}-git" | |
| pkgver=r703.8e69535 | |
| pkgrel=1 | |
| pkgdesc="Open-source Wii U Libraries" | |
| arch=('any') | |
| url="https://github.com/devkitPro/wut" | |
| conflicts=("${_pkgname}") | |
| provides=("${_pkgname}") |
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
| #!/bin/sh | |
| export PATH=$DEVKITPRO/devkitPPC/bin:$PATH | |
| export PATH=$DEVKITPRO/tools/bin:$PATH | |
| export PATH=$DEVKITPRO/portlibs/wiiu/bin:$DEVKITPRO/portlibs/ppc/bin:$PATH | |
| export WUT_ROOT=$DEVKITPRO/wut | |
| export RPXSPECS="-specs=$WUT_ROOT/share/wut.specs" | |
| export RPLSPECS="-specs=$WUT_ROOT/share/wut.specs -specs=$WUT_ROOT/share/rpl.specs" | |
| export MACHDEP="-DESPRESSO -mcpu=750 -meabi -mhard-float" |