Skip to content

Instantly share code, notes, and snippets.

@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;