Skip to content

Instantly share code, notes, and snippets.

View k-okawa's full-sized avatar

KyoheiOkawa k-okawa

View GitHub Profile
@k-okawa
k-okawa / convertcolor.py
Last active July 26, 2019 06:31
画像を赤くする処理(Pillow version)
from PIL import Image
import sys
args = sys.argv
argc = len(args)
files = args[1:argc]
def convert_img(file):
img = Image.open(file)
@k-okawa
k-okawa / cvconvertcolor.py
Last active November 13, 2019 09:52
画像を赤くする処理(OpenCV version)
from PIL import Image
import sys
args = sys.argv
argc = len(args)
files = args[1:argc]
def convert_img(file):
img = Image.open(file)
@k-okawa
k-okawa / LinkXmlGenerator.cs
Last active November 5, 2021 09:24
LinkXmlGenerator.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Xml;
using UnityEditor;
using UnityEngine;
public class LinkXmlGenerator {
{
"version": 1,
"notes": "最高のキーマップ",
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n",
"keyboard": "crkbd/rev1",
"keymap": "crkbd_rev1_layout_split_3x6_3_mine",
"layout": "LAYOUT_split_3x6_3",
"layers": [
[
"KC_TAB",