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 | |
| set -euo pipefail | |
| # Core Keeper Save Fix for Wine on macOS — CrossOver, Sikarugir, Kegworks, Whisky | |
| # Patches StandaloneFilesystem.Write to bypass Wine-incompatible File.Replace/File.Move calls | |
| # Usage: ./patch-corekeeper-macos.sh [--list] [--restore] [--game-dir DIR] | |
| # | |
| # The patch is a managed-assembly rewrite (Mono.Cecil, running natively on | |
| # macOS) against a DLL inside the game's own install directory, so it does not | |
| # care which Wine front-end runs the game. Only the hunt for the Windows |
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
| // Based/copied on/from article: https://dev.to/petrtcoi/performance-of-the-spread-operator-2bpk | |
| // npm install immer immutable ramba lodash @faker-js/faker | |
| // node app.js | |
| const _ = require('lodash'); | |
| const R = require('ramda'); | |
| const { Map } = require('immutable') | |
| const { produce } = require('immer'); | |
| const { faker } = require('@faker-js/faker') |
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 <stdbool.h> | |
| void printBoard(int size, char board[size][size]) | |
| { | |
| printf("\n"); | |
| for (int i = 0; i < size; i++) { | |
| // Print row | |
| for (int j = 0; j < size; j++) { | |
| printf(" %c ", board[i][j]); |