This file contains 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 asyncio | |
import contextlib | |
import datetime | |
import asyncpg | |
import asyncpg.transaction | |
import discord | |
import dotenv | |
from discord import app_commands | |
from discord.ext.commands import Bot |
This file contains 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 re | |
import sys | |
label_pat = re.compile('(?P<name>\w+):') | |
data_pat = re.compile('\s+\.byte (?P<data>(?:(?:0x[0-9a-fA-F]{2})(?:, )?){6})') | |
name = None | |
nrow = 0 | |
with open('.vscode/scratch.s') as fp: | |
for line in fp: |
This file contains 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 discord | |
from discord.ext import commands | |
import aiohttp | |
import io | |
import traceback | |
import config # includes the token | |
# These exceptions are ignored. | |
filter_excs = (commands.CommandNotFound, commands.CheckFailure) |
This file contains 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 <stdio.h> | |
#include <ctype.h> | |
#include <string.h> | |
int main(int argc, char ** argv) { | |
static char label[BUFSIZ]; | |
strcpy(label, "FILE_"); | |
if (argc < 3) { | |
fprintf(stderr, "usage: %s INPUT OUTPUT\n" | |
"ERROR: insufficient arguments\n", argv[0]); |
This file contains 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 json | |
import re | |
SONGS = [ | |
'MUS_DUMMY', | |
'SE_KAIFUKU', | |
'SE_PC_LOGIN', | |
'SE_PC_OFF', | |
'SE_PC_ON', | |
'SE_SELECT', |
This file contains 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
#ifndef GUARD_TRAINERS_H | |
#define GUARD_TRAINERS_H | |
#define TRAINER_ENCOUNTER_MUSIC_MALE 0 // standard male encounter music | |
#define TRAINER_ENCOUNTER_MUSIC_FEMALE 1 // standard female encounter music | |
#define TRAINER_ENCOUNTER_MUSIC_GIRL 2 // used for male Tubers and Young Couples too | |
#define TRAINER_ENCOUNTER_MUSIC_SUSPICIOUS 3 | |
#define TRAINER_ENCOUNTER_MUSIC_INTENSE 4 | |
#define TRAINER_ENCOUNTER_MUSIC_COOL 5 | |
#define TRAINER_ENCOUNTER_MUSIC_AQUA 6 |
This file contains 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 <stdio.h> | |
#include <png.h> | |
#include <stdlib.h> | |
#define FATAL_ERROR(...) ({fprintf(stderr, __VA_ARGS__);exit(1);}) | |
#define min(a, b) ((a) < (b) ? (a) : (b)) | |
struct Image | |
{ |
This file contains 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 collections | |
import os | |
import sys | |
PTRTYPE_SCRIPT = 0 | |
PTRTYPE_BYTEARRAY = 1 | |
PTRTYPE_HWORDARRAY = 2 | |
if len(sys.argv) > 1: | |
project_dir = sys.argv[1] |
This file contains 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
Name | Effect | Power | Type | Accuracy | PP | Effect chance | Is damaging? | |
---|---|---|---|---|---|---|---|---|
POUND | EFFECT_NORMAL_HIT | 40 | NORMAL | 100 | 35 | 0 | TRUE | |
KARATE_CHOP | EFFECT_NORMAL_HIT | 50 | FIGHTING | 100 | 25 | 0 | TRUE | |
DOUBLESLAP | EFFECT_MULTI_HIT | 15 | NORMAL | 85 | 10 | 0 | TRUE | |
COMET_PUNCH | EFFECT_MULTI_HIT | 18 | NORMAL | 85 | 15 | 0 | TRUE | |
MEGA_PUNCH | EFFECT_NORMAL_HIT | 80 | NORMAL | 85 | 20 | 0 | TRUE | |
PAY_DAY | EFFECT_PAY_DAY | 40 | NORMAL | 100 | 20 | 0 | TRUE | |
FIRE_PUNCH | EFFECT_BURN_HIT | 75 | FIRE | 100 | 15 | 10 | TRUE | |
ICE_PUNCH | EFFECT_FREEZE_HIT | 75 | ICE | 100 | 15 | 10 | TRUE | |
THUNDERPUNCH | EFFECT_PARALYZE_HIT | 75 | ELECTRIC | 100 | 15 | 10 | TRUE |
This file contains 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
.file "" | |
.text | |
.syntax divided | |
.section .rodata | |
.align 2 | |
.thumb | |
.syntax unified | |
.align 1 | |
.p2align 2,,3 | |
.arch armv4t |
NewerOlder