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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define MAX_FILENAME_LEN 16 | |
// Estructura para almacenar la cabecera de cada archivo (nombre y tamaño) | |
typedef struct { | |
char filename[MAX_FILENAME_LEN]; | |
long long filesize; |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <dirent.h> | |
#include <sys/stat.h> | |
#include <unistd.h> | |
// Code based on mills32 Little-Game-Engine-for-VGA-EGA | |
struct dirent *direntry; |
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
version: "3" | |
services: | |
allegro: | |
image: docker.io/amarillion/alleg4-buildenv | |
volumes: | |
- ./static:/data | |
# allegro tools in version 4 fail for no reason even on DOS. |
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
profiles: Yup.lazy((value, { parent }) => { | |
if (value && parent.selected_groups?.length) { | |
const newEntries = parent.selected_groups.reduce( | |
(acc, val) => ({ | |
...acc, | |
[val]: Yup.string().test("hasValue", "item cannot be empty", (value) => { | |
return !!value; | |
}), | |
}), | |
{} |
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
export const TextField = ({name}) => { | |
const { touched, values, errors, handleBlur, handleChange } = useFormikContext(); | |
const isTouched = getIn(touched, name); | |
const value = getIn(values, name); | |
const error = getIn(errors, name); | |
// getIn automates for you getting values["text"][0] | |
const isTouched = getIn(touched, name); | |
const value = getIn(values, name); |
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 PropTypes from "prop-types"; | |
import { useCallback, useMemo, useState } from "react"; | |
import Table from "@mui/material/Table"; | |
import TableBody from "@mui/material/TableBody"; | |
import TableCell from "@mui/material/TableCell"; | |
import TableHead from "@mui/material/TableHead"; | |
import TableRow from "@mui/material/TableRow"; | |
import TableSortLabel from "@mui/material/TableSortLabel"; | |
import Box from "@mui/material/Box"; |
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
// disables weird keyboard behaviours in mac ~/Library/KeyBindings/DefaultKeyBinding.dict | |
{ | |
"\UF729" = moveToBeginningOfLine:; // home | |
"\UF72B" = moveToEndOfLine:; // end | |
"$\UF729" = moveToBeginningOfLineAndModifySelection:; // shift-home | |
"$\UF72B" = moveToEndOfLineAndModifySelection:; // shift-end | |
"@\UF700" = noop:; // command-up | |
"@\UF701" = noop:; // command-down | |
"$@\UF700" = noop:; // shift-command-up | |
"$@\UF701" = noop:; // shift-command-down |
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 os, glob | |
import shutil | |
import string | |
# generates RLOADER https://github.com/marco-sacchi/RLoader LIST.txr | |
translation_table = dict.fromkeys(map(ord, ' [](),.~!@#$%^&*{}: '), None) | |
OUT = "/Users/jordism/Downloads/DOS/GAMES" | |
ROOT = ["./DIST/games1", | |
"./games2", | |
"./games3"] |
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 os, glob | |
import shutil | |
import string | |
translation_table = dict.fromkeys(map(ord, ' [](),.~!@#$%^&*{}: '), None) | |
# todo use argparse to parametrize | |
OUT = "./games" | |
ROOT = ["./DIST/games1", | |
"./DIST/games2", | |
"./DIST/games3"] |
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
sudo open /System/Library/CoreServices/KeyboardSetupAssistant.app/Contents/MacOS/KeyboardSetupAssistant |
NewerOlder