Skip to content

Instantly share code, notes, and snippets.

@Hamayama
Hamayama / 1000_make_code.bat
Last active April 22, 2023 06:59
Gauche による C のコード生成のサンプル
View 1000_make_code.bat
gosh 1000_make_code.scm
pause
@Hamayama
Hamayama / information.txt
Last active September 17, 2022 11:11
Gauche の http-get で、mbedTLS のエラーが出る件の調査
View information.txt
<Scheme:初心者の質問箱>
https://practical-scheme.net/wiliki/wiliki.cgi?Scheme%3A%E5%88%9D%E5%BF%83%E8%80%85%E3%81%AE%E8%B3%AA%E5%95%8F%E7%AE%B1
(rfc.http) http-get での error について(Gauche-0.9.12)
(use rfc.http)
(http-get "artscape.jp" "/exhibition/traveling/index.html" :secure #t)
*** ERROR: TLS handshake failed: SSL - A field in a message was incorrect or inconsistent with other fields (-26112)
@Hamayama
Hamayama / gen_eaw_data.scm
Last active May 3, 2021 18:36
Gauche を使用して、Unicode の文字幅データを生成するツール
View gen_eaw_data.scm
;; -*- coding: utf-8 -*-
;;
;; gen_eaw_data.scm
;; 2021-5-4 v1.00
;;
;; <内容>
;; Gauche を使用して、Unicode の文字幅データを生成するためのツールです。
;; EastAsianWidth.txt と emoji-data.txt が、本ファイルと同一フォルダに
;; 存在することを想定しています。
;; EastAsianWidth.txt と emoji-data.txt は、以下にあります。
@Hamayama
Hamayama / 3014_lem_winterm.md
Last active April 25, 2021 08:26
Lem エディタの Windows Terminal 上での実行方法
View 3014_lem_winterm.md

Lem エディタの Windows Terminal 上での実行方法

  • Windows 環境において、Lem エディタを Windows Terminal 上で実行する方法をまとめたものです。
    (Windows Terminal の実行には、Windows 10 が必要です)

事前準備

  • 事前に、Lem エディタ および Windows Terminal が、適切にインストールされている必要があります。
@Hamayama
Hamayama / wincon_mouse.c
Last active May 8, 2023 19:41
Windows Console Mouse Input Test
View wincon_mouse.c
/*
Windows Console Mouse Input Test
2021-3-13 v1.28
OS : Windows 10 (version 20H2) (64bit)
DevTools : MSYS2/MinGW-w64 (64bit) (gcc version 10.2.0 (Rev6, Built by MSYS2 project)))
Terminal : Windows Terminal 1.6.10571.0
Compile : gcc -g -O2 -Wall -Wextra -o wincon_mouse.exe wincon_mouse.c
*/
#include <windows.h>
@Hamayama
Hamayama / 3022_github_newgui_custom.txt
Last active July 19, 2022 01:30
GitHub New GUI Customization
View 3022_github_newgui_custom.txt
/*
GitHub New GUI Customization
2022-7-19 v1.09
*/
@-moz-document domain("github.com") {
/* width >= 768px */
@media (min-width: 768px) {
/* narrow width of sidebar */
turbo-frame > #repo-content-pjax-container > div > div > .Layout.Layout--sidebarPosition-end,
@Hamayama
Hamayama / pcdemo3_debug.scm
Last active June 5, 2020 04:09
reset/shift と guard の組み合わせでメモリリークする件の調査
View pcdemo3_debug.scm
;;
;; pcdemo3_debug.scm
;; 2020-6-4 v1.02
;;
(use data.queue)
(use gauche.partcont)
;; for debug
(define *dbg-level* 3) ; (bitwise setting (e.g. 3 is error+info)
; ; =0:none, =1:error, =2:info)
@Hamayama
Hamayama / 3012_lem_conemu.md
Last active January 22, 2021 02:29
Lem エディタの ConEmu 上での実行方法
View 3012_lem_conemu.md
@Hamayama
Hamayama / 2111_github_actions.md
Last active June 9, 2021 07:54
GitHub Actions のメモ
View 2111_github_actions.md
@Hamayama
Hamayama / 3000_handle_vals.txt
Last active December 22, 2019 13:08
Gauche プルリクエスト #558 測定結果
View 3000_handle_vals.txt
<Gauche プルリクエスト #558 測定結果>
https://github.com/shirok/Gauche/pull/558
測定用のスクリプトは下に添付します ( handle_vals.scm ) 。
(1) 変更前 (for + local allay)
values-0 : #<time-result 3000000 times/ 6.818 real/ 7.547 user/ 0.781 sys>
values-1 : #<time-result 3000000 times/ 7.043 real/ 8.000 user/ 0.875 sys>