Skip to content

Instantly share code, notes, and snippets.

View Kansattica's full-sized avatar
🦨

Princess Grace Kansattica

🦨
View GitHub Profile
@Kansattica
Kansattica / counter.cpp
Last active December 5, 2023 00:43
gay little cgi script hit counter
// compile with g++ counter.cpp --std=c++17 -O2 -o counter
// if your server does multiple CGI requests at once, define MULTI_CGI, e.g.:
// g++ counter.cpp --std=c++17 -DMULTI_CGI -O2 -o counter
#include <iostream>
#include <stdio.h>
#include <unordered_map>
#include <string>
#include <cstring>
#include <fstream>
@Kansattica
Kansattica / Fallen London Wiki Lookup.user.js
Last active September 2, 2021 18:38
Fallen London wiki lookup script
// ==UserScript==
// @name Fallen London Wiki Lookup
// @namespace https://www.fallenlondon.com/
// @version 0.2
// @description Adds a link to the corersponding wiki page to Fallen London storylets.
// @author Princess Grace
// @match https://www.fallenlondon.com/
// @icon https://www.google.com/s2/favicons?domain=fallenlondon.com
// @grant none
// ==/UserScript==
#include <random>
#include <iostream>
#include <algorithm>
#include <array>
constexpr int trials = 2000000000;
int main()
{
constexpr std::array<int, 13> boost_value = {