I hereby claim:
- I am jw910731 on github.
- I am jw910731 (https://keybase.io/jw910731) on keybase.
- I have a public key ASBd8wyibxuaogfpKwDcmu5Ltkt7eJ4wEBT7aATY9FblyAo
To claim this, I am signing this object:
| { | |
| inputs = { | |
| nixpkgs.url = "github:cachix/devenv-nixpkgs/rolling"; | |
| systems.url = "github:nix-systems/default"; | |
| devenv.url = "github:cachix/devenv"; | |
| devenv.inputs.nixpkgs.follows = "nixpkgs"; | |
| }; | |
| nixConfig = { | |
| extra-trusted-public-keys = |
| GUA = [63, 0, 17, 34, 23, 58, 2, 16, 55, 59, 7, 56, 61, 47, 4, 8, 25, 38, 3, 48, 41, 37, 32, 1, 57, 39, 33, 30, 18, 45, 28, 14, 60, 15, 40, 5, 53, 43, 20, 10, 35, 49, 31, 62, 24, 6, 26, 22, 29, 46, 9, 36, 52, 11, 13, 44, 54, 27, 50, 19, 51, 12, 21, 42] # fmt: skip | |
| def bit2gua(bit6: int) -> str: | |
| return chr(0x4DC0 + GUA.index(bit6 & 0x3F)) | |
| def byte_segment(in_byte: bytes) -> bytearray: | |
| ret: bytearray = [] | |
| rem = 0 |
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| struct list { | |
| struct list *next; | |
| int n; | |
| }; | |
| struct list *new_list(int *arr, size_t n) { |
| #include <ranges> | |
| #include <type_traits> | |
| #include <vector> | |
| #include <list> | |
| #include <iostream> | |
| template <typename T> requires std::ranges::sized_range<T> | |
| T &&merge_sort(T &&arr) { | |
| if (std::ranges::size(arr) < 2) return std::forward<T>(arr); | |
| auto mid_len = std::ranges::size(arr) / 2; |
| import Foundation | |
| import IOKit | |
| import IOKit.hid | |
| class KeyboardCapture { | |
| var manager: IOHIDManager | |
| init() { | |
| manager = IOHIDManagerCreate(kCFAllocatorDefault, IOOptionBits(kIOHIDOptionsTypeNone)) |
| #include <stdint.h> | |
| #include <sys/ioctl.h> | |
| #include <stdio.h> | |
| #include <unistd.h> | |
| #include <stdbool.h> | |
| #include <string.h> | |
| #include <stdlib.h> | |
| #include <errno.h> | |
| #include <signal.h> |
I hereby claim:
To claim this, I am signing this object:
| import os | |
| import sys | |
| import subprocess | |
| def list_dir(folder): | |
| return [f for f in os.listdir(folder) if os.path.isfile(os.path.join(folder, f))] | |
| class Runner(object): | |
| def __init__(self, bin: str): | |
| self.bin = bin |
| import os | |
| import sys | |
| import subprocess as subproc | |
| import difflib | |
| import decimal | |
| from subprocess import PIPE | |
| from typing import * | |
| from argparse import ArgumentParser | |
| def get_dirlist(parent_dir: str)-> List[str]: |
| #!/bin/bash | |
| realpath(){ | |
| echo "$(cd "$(dirname "$1")"; pwd -P)/$(basename "$1")" | |
| } | |
| target="$(cd "$(dirname "$2")"; pwd -P)/$(basename "$2")" | |
| pushd "$1" > /dev/null | |
| BASE_DIR=/var/tmp/judge | |
| if [[ -z "$1" ]]; then | |
| echo argument not set or being blank |