Skip to content

Instantly share code, notes, and snippets.

@y0din
y0din / gist:d0ffb27349202ad0c2454038c73d8f8d
Created September 17, 2023 12:18 — forked from mikeyk/gist:1329319
Testing storage of millions of keys in Redis
#! /usr/bin/env python
import redis
import random
import pylibmc
import sys
r = redis.Redis(host = 'localhost', port = 6389)
mc = pylibmc.Client(['localhost:11222'])
@y0din
y0din / TurnipPrices.cpp
Created May 4, 2020 08:19 — forked from Treeki/TurnipPrices.cpp
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
{