Skip to content

Instantly share code, notes, and snippets.

@skuralll
skuralll / docker-compose.yml
Created December 7, 2024 12:42
PaperMC開発用Docker
version: "1.0"
services:
# PaperMC
paper:
image: marctv/minecraft-papermc-server:1.21.3-81
environment:
- MEMORYSIZE=2G
- PAPERMC_FLAGS=""
- PUID=1000
@skuralll
skuralll / アンミ化.py
Last active May 16, 2022 14:12
画像をアンミ化(白200色)するスクリプト
import catch as catch
from PIL import Image
import random
RGB_MIN = 230
RGB_MAX = 255
COLOR_NUM = 200
# open original image
while True:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct{
int* comped;
int len;
} lzw_comped;
/*
@skuralll
skuralll / 失敗例.c
Last active September 8, 2020 15:25
reallocできない
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//Utils(ファイル分割すべきだけど設定がめんどくさいので)
typedef struct
{
int len;
char str[];
@skuralll
skuralll / Istring.c
Created September 5, 2020 12:26
string型に似たようなもの(可変長文字配列)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct
{
int len;
char str[];
} string;