Skip to content

Instantly share code, notes, and snippets.

@karai17
karai17 / pfui-config.json
Last active July 1, 2024 21:42
pfUI config
pfUI_config = {
["disabled"] = {
["totems"] = "0",
["pixelperfect"] = "0",
["skin_Merchant"] = "0",
["skin_Options - Sound"] = "0",
["skin_Options - Video"] = "0",
["unlock"] = "0",
["loot"] = "0",
["feigndeath"] = "0",
@karai17
karai17 / oh-no.lua
Last active February 5, 2019 01:38
what have i done
--[[ PUT /api/users/1 ]]--
local models = require "models"
local auth = require "utils.auth"
local action = setmetatable({}, require "action_base")
function action.GET(app)
-- verify api user is an admin
return auth.admin(app,
@karai17
karai17 / necrodancer-piuio.asm
Created October 28, 2018 18:53
NecroDancer ITG2 PIUIO Support (Linux v1.29 Assembly)
Dump of assembler code for function _ZN9gxtkInput11BeginUpdateEv:
0x080d6fd0 <+0>: 55 push ebp
0x080d6fd1 <+1>: 57 push edi
0x080d6fd2 <+2>: bf 18 00 00 00 mov edi,0x18
0x080d6fd7 <+7>: 56 push esi
0x080d6fd8 <+8>: 53 push ebx
0x080d6fd9 <+9>: 83 ec 5c sub esp,0x5c
0x080d6fdc <+12>: 65 a1 14 00 00 00 mov eax,gs:0x14
0x080d6fe2 <+18>: 89 44 24 4c mov DWORD PTR [esp+0x4c],eax
0x080d6fe6 <+22>: 31 c0 xor eax,eax

Chili Recipe

Ingredients

  • 2 cans Kidney Beans (or sub one can for regular beans)
  • 2 cans spaghetti sauce
  • 2 packets of chili mix or chili powder to taste
  • 1 lb ground beef, spiced to taste
  • Vegetables to taste
@karai17
karai17 / sm6.md
Last active February 18, 2017 00:15
StepMania 6.0 Scoring System (WIP)

SM6 Scoring

Score starts at 0 and can never go down. You always keep what you earn. Score is calculated internally by Dance Points (DP) and then normalized to a maximum score of 100,000,000. All scoring is per-note, not per-row. Judgements, however, are per row (in foot game modes). This means that a Jump is counted as a single action with two Notes. If you miss one, you miss both.

Math

https://docs.google.com/spreadsheets/d/1d6RxvaiXPSw0J-ZGJPHFHX7IH3JxoaemrQboKKgO9a0/edit#gid=0

Dance Points

@karai17
karai17 / Beans & Bowls
Last active August 29, 2015 13:57
The game starts with 5 bowls. All but the last are filled with 2 beans. The player must select a bowl to empty and distribute forward (looping around back to 1). The next bowl to select must be the last bowl that was distributed to EXCEPT if the last bowl is the actual last bowl (in this example, 5), in which they can choose any bowl again. If t…
function init_new_game(num_bowls)
local bowls = {}
for i=1, num_bowls - 1 do
table.insert(bowls, 2)
end
table.insert(bowls, 0)
return bowls