This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| from collections import defaultdict | |
| r = requests.get(url="https://korpershoek.me/srb2/highscores/api/highscores", verify=False) | |
| data = r.json() | |
| skins = defaultdict(int) | |
| #three for first place, 2 for second, 1 for last, 0 otherwise | |
| weights = { | |
| 1:15, | |
| 2:12, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Create a console variable so you can turn metalthok on and off | |
| -- By typing `metalthok On` or `metalthok Off` in console. | |
| local MetalThok = CV_RegisterVar{ | |
| name = "metalthok", -- name of the command | |
| defaultvalue = 0, -- off by default | |
| flags = CV_NETVAR, --Works over the network, so the same in the whole server for all users | |
| PossibleValue = CV_OnOff --It's an On/Off value | |
| } | |
| -- This function us executed every frame, for each player |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set-option global tabstop 4 | |
| set-option global indentwidth 4 | |
| declare-option -hidden str detect_indent_script %sh{ echo "${kak_source%/*}/index.js" } | |
| define-command detect-indent %{ | |
| evaluate-commands %sh{ | |
| node "$kak_opt_detect_indent_script" "$kak_buffile" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *** This is the debug buffer, where debug info will be written *** | |
| hook ModuleLoad(x11)/ | |
| hook KakBegin()/ | |
| hook KakBegin()/kitty-hooks | |
| hook KakBegin()/GNUscreen | |
| hook KakBegin()/ | |
| hook KakBegin()/ | |
| hook KakBegin()/ | |
| hook BufCreate(*stdin*)/autorestore | |
| hook BufCreate(*stdin*)/lsp |
NewerOlder