Skip to content

Instantly share code, notes, and snippets.

@Hamayama
Hamayama / 3022_github_newgui_custom.txt
Last active July 19, 2022 01:30
GitHub New GUI Customization
/*
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 の組み合わせでメモリリークする件の調査
;;
;; 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 上での実行方法

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

  • Windows 環境において、Lem エディタを ConEmu 上で実行する方法をまとめたものです。

  • mintty + winpty 上では 16 色 しか表示できませんでした (winpty の制約による) が、
    ConEmu 上では 256 色 で表示することができます。
    (参考URL: rprichard/winpty#108
    https://conemu.github.io/en/Xterm256Colors.html )

@Hamayama
Hamayama / 2111_github_actions.md
Last active June 9, 2021 07:54
GitHub Actions のメモ

GitHub Actions のメモ

  • Gauche の GitHub Actions 関連のプルリクエスト
    [#601] [#603] [#605] [#606] [#608] [#611] [#622] [#625] [#630] [#652]
    [#699] [#702] [#704] [#705] [#727]

Workflow の failure 事例

@Hamayama
Hamayama / 3000_handle_vals.txt
Last active December 22, 2019 13:08
Gauche プルリクエスト #558 測定結果
<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>
@Hamayama
Hamayama / lem_r7rs-swank.txt
Last active February 13, 2020 01:50
lem の r7rs-swank 対応
<lem の r7rs-swank 対応>
関連プルリクエスト: https://github.com/cxxxr/lem/pull/435
https://github.com/cxxxr/lem/pull/438
(1)ファイル
scheme-mode
scheme-mode.lisp process にも swank にも無関係なもの(上位層)(※)
@Hamayama
Hamayama / dynamic-test.scm
Last active December 17, 2019 08:58
Emulate dynamic-wind and reset/shift on Gauche
;;
;; dynamic-test.scm
;; 2019-12-17 v5.04
;;
;; Emulate dynamic-wind and reset/shift on Gauche
;;
;; (emu-dynamic-wind before thunk after)
;; before is (^[] expr ...)
;; thunk is (^[] expr ...)
;; after is (^[] expr ...)
@Hamayama
Hamayama / 3011_lem_scheme.md
Last active December 30, 2020 07:46
Lem エディタの scheme-mode

Lem エディタの scheme-mode

  • Lem エディタで、Scheme 言語のプログラムの作成を行うためのモードです。

  • (キーバインドの記号 (C- 等) の意味については、Emacs 関連の文書を参照してください)

  • Scheme の処理系は、事前にインストールされている必要があります。
    (デフォルトでは、Scheme の処理系は、Gauche を想定しています)

@Hamayama
Hamayama / test-with-ini.txt
Last active May 17, 2019 23:16
Lem エディタの lem-pdcurses のテスト
<テスト>
init.lisp の設定ありで確認
(1)mintty + winpty
起動
winpty ros -Q -s lem-pdcurses -L sbcl-bin -- $USERPROFILE/.roswell/bin/lem-ncurses
→ 2019-5-14 OK
@Hamayama
Hamayama / thread32.c
Last active April 24, 2021 07:01
GetThreadContext test for Windows Wow64 thread
//
// thread32.c
// 2019-2-16 v1.03
//
// Description:
// GetThreadContext test for Windows Wow64 thread.
//
// Original source:
// https://social.msdn.microsoft.com/Forums/vstudio/ja-JP/aa176c36-6624-4776-9380-1c9cf37a314e/getthreadcontext-returns-stale-register-values-on-wow64?forum=windowscompatibility
// (GetThreadContext returns stale register values on WOW64)