Skip to content

Instantly share code, notes, and snippets.

@Oderjunkie
Oderjunkie / CPP.ORG
Last active April 25, 2023 13:58
C Preprocessor Abuse

C Preprocessor Abuse

last updated: 4-28-2022T19:47.69Z

human readable

id name alignment disabled? new? description
1 Armorer town false false Each night, may give out a @{item:Vest}
2 Revenant town false false If attempted to be killed, will bleed for a day before dying
3 Luckyguard town false false Each night, may visit and protect a player from a night kill --- --- If the player is protected successfully, either the Luckyguard or the killer is killed
@Oderjunkie
Oderjunkie / just_a_simple_add_function.js
Last active February 8, 2022 16:01
just a simple add function!
// === types ===
let __ = {
any: inp => inp,
nat: inp => {
if (typeof inp === 'function')
return inp(x=>x+1)(0);
if (typeof inp === 'string')
return __.nat(Number(inp))
if (typeof inp === 'number' &&
@Oderjunkie
Oderjunkie / tmuxmicro.el
Last active September 23, 2021 17:10
cursed emacs [ emacs except it's tmux and micro ]
;;; tmuxmicro.el --- Keybinds ported from a tmux/micro setup. -*- coding: utf-8; -*-
;; M-x package-install RET undo-tree RET
(require 'term)
(global-undo-tree-mode 1)
(cua-mode t)
(setq cua-keep-region-after-copy t)
(setq org-support-shift-select t)
(setq recording-macro nil)
(setq-default truncate-lines t)
@Oderjunkie
Oderjunkie / fetch.js
Last active March 9, 2021 16:52
Javascript: Threadsafe WASM-safe fetch() and Response alternative
{
class Response_sync extends Response {
#zzz
constructor(...args) {
super(...args);
this.#zzz = args[0];
}
text() { // WASM-safe Response.textd()
return this.#zzz;
}