Skip to content

Instantly share code, notes, and snippets.

// The following code is a result of GPT-4: Use with caution
//
// prompt:
// このソースコードにエラー処理とコメントを適切に追加し、各関数の先頭でその関数のサイクロマティック複雑度をコメントしてください。ソースコードを出力した後にソースコードについて説明する必要はありません。
package main
import (
"flag"
"fmt"
@msmhrt
msmhrt / Install.LOG
Created August 30, 2022 18:16
build log of h2o
Script started on 2022-08-31 03:06:48+0900
]0;msmhrt@ashrose: ~/repository/h2o msmhrt@ashrose:~/repository/h2o$ git clean -fdx
Removing build/
Removing include/h2o/gitrev.h
]0;msmhrt@ashrose: ~/repository/h2o msmhrt@ashrose:~/repository/h2o$ mkdir -p build
]0;msmhrt@ashrose: ~/repository/h2o msmhrt@ashrose:~/repository/h2o$ cd build
]0;msmhrt@ashrose: ~/repository/h2o/build msmhrt@ashrose:~/repository/h2o/build$ cmake -DCMAKE_INSTALL_PREFIX=/home/msmhrt/local ..
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
@msmhrt
msmhrt / katakana_variants.txt
Created June 24, 2018 15:55
Katakana word list for the master branch of vim-jp/vimdoc-ja-working (2018/06/25)
エミュレータ(13)、エミュレーター(2)
キャラクタ(21)、キャラクター(1)
コンピュータ(19)、コンピューター(1)
サーバー(166)、サーバ(1)
ハンドラ(13)、ハンドラー(9)
バー(11)、バッ(1)
パス(215)、パース(33)
パラメーター(19)、パラーメーター(1)、パラメータ(1)
ファイル・ウィンドウ(1)、ファイルウィンドウ(1)
ファイル・バッファ(2)、ファイルバッファ(1)
@msmhrt
msmhrt / JS
Created November 21, 2015 23:43
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8kwaWC7aTfo+H1789O4M+GXs78ZwsSm5VgyN0fFkjqr0KEmgtjUK+BqPMOZivanTc8RLNMv2G+EYHl55/EcbdMQydDjNQ1NbthIBSfHjChAYOoPedq6hMjkoTUl0kLohPTlEI01viHSpGYGKZi6XsV/SY56vD2KFP4isU0i+whM72QdmFXvLJgKSlY5aj6mEB4BCWpLATHvXTCePY24XEEoAVsj5ySk9C9sMWAG5H+ZLRoI+QAvQnAPksWaI7+BvIh8gle4NQLdKtJpV9kq3E3ne02ayO3iaLUc7lbuKpct8XJ3trOshapJnoxWceaFR5pBKaoZlxVxVSPEIw3LPp JS
@msmhrt
msmhrt / Install.LOG
Created February 1, 2015 21:59
build log of libsixel
スクリプトは 2015年02月02日 06時51分16秒
に開始しましたmsmhrt@ashrose:~/repository/libsixel$ git status
On branch hotfix-for-issue23
Your branch is up-to-date with 'origin/hotfix-for-issue23'.
nothing to commit, working directory clean
msmhrt@ashrose:~/repository/libsixel$ git clean -fdx
msmhrt@ashrose:~/repository/libsixel$ ./configure --prefix=/home/msmhrt/local
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
@msmhrt
msmhrt / wmctrl.py
Last active August 29, 2015 14:11
PythonでX Window Systemのウィンドウタイトルを取得する ref: http://qiita.com/msmhrt/items/76f45c097294edd07c2b
#!/usr/bin/env python3
# vim:fileencoding=utf-8
# Copyright (c) 2014 Masami HIRATA <msmhrt@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from contextlib import contextmanager
@contextmanager
def ctxmgr():
print('before')
" File: vimrc
"
" Author: created by reedes on 16-Feb-2013
" Updated: continuously
" URL: https://github.com/reedes/vim-config
set nocompatible
" # VUNDLE (package management)
filetype off
@msmhrt
msmhrt / 0_reuse_code.js
Created March 20, 2014 07:00
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@msmhrt
msmhrt / katakana_variants.txt
Created January 10, 2014 13:38
Katakana word list for LibreOffice (2014/01/10)
インポートフィルター(9)、インポートフィルタ(4)
ウィルス(3)、ウイルス(2)
ウイグル(4)、ウィグル(1)
オフィススイート(3)、オフィススィート(1)
カーソル(11)、カーソール(2)
キリル(32)、キリール(2)
キー(73)、キ(2)
クエリー(96)、クエリ(2)
コーサ(8)、コサ(1)
サンタル(4)、サンタール(1)