Skip to content

Instantly share code, notes, and snippets.

View pedroslopez's full-sized avatar
👨‍💻
Building

Pedro S. Lopez pedroslopez

👨‍💻
Building
View GitHub Profile
@Treeki
Treeki / TurnipPrices.cpp
Last active April 23, 2026 19:05
AC:NH turnip price calculator
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
// munged from https://github.com/simontime/Resead
namespace sead
{
class Random
{
setTimeout(function() {
function getAllModules() {
return new Promise((resolve) => {
const id = _.uniqueId("fakeModule_");
window["webpackJsonp"](
[],
{
[id]: function(module, exports, __webpack_require__) {
resolve(__webpack_require__.c);
}
function isChatMessage(message) {
if (message.__x_isSentByMe) {
return false;
}
if (message.__x_isNotification) {
return false;
}
if (!message.__x_isUserCreatedType) {
return false;
}