Skip to content

Instantly share code, notes, and snippets.

@lurdan
lurdan / config.yaml
Created May 29, 2023 07:34
GlazeWM config
gaps:
inner_gap: 1
outer_gap: 0
general:
# Whether to show floating windows as always on top.
show_floating_on_top: false
bar:
height: "25px"
#!/bin/bash
# cf. https://www.skyarch.net/blog/?p=7423
ip2dec() {
local IFS=.
local C=($1)
printf "%s\n" $(( (${C[0]} << 24) | (${C[1]} << 16) | (${C[2]} << 8) | ${C[3]} ))
}
mask2dec() {
@lurdan
lurdan / flea.org
Last active January 28, 2019 14:52
古い理工書など

蚤の市

実家で親の蔵書を整理していく中で、程度のよさそうなものをいくつかピックアップして、中古で買うぜって人がいればとっておきますよー、というリストです

古書

すでに結構な量を処理していますが、残っているものの分野はおおむね、

  • 数学、物理、その他自然科学
  • 組み込み開発 (PIC,ラズパイ,ARM,電子工作など……。CQ出版社率高め)

あたりです

cp932 向けの変換設定

が良くわからないので調べてみている

脳内ダンプ

Windows 上では、SJIS と Unicode との対応がおかしく (他の環境と違う) て、一部記号などが想定と別の文字になったりする問題がある

ex. Windows 上では入力した文字が SJIS(CP932) から Unicode に変換される過程で

つもり実は
@lurdan
lurdan / Config.ini
Last active December 27, 2018 10:22
bug.n customized keyconfig like xmonad.
; bug.n - tiling window management
; @version 9.0.0
;; Status bar
;Config_showBar=1
;Config_horizontalBarPos=left
;Config_verticalBarPos=top
;Config_barWidth=100%
;Config_singleRowBar=1
;Config_spaciousBar=0
@lurdan
lurdan / make_SO-02G_sane.bat
Created August 25, 2016 10:42
非rootで Z3C をまともにするスクリプト (要 ADB)
adb shell settings put global tether_dun_required 0
adb shell pm hide com.android.contacts
adb shell pm hide com.android.dialer
adb shell pm hide com.nttdocomo.android.accountauthenticator
adb shell pm hide com.nttdocomo.android.apnsw
adb shell pm hide com.nttdocomo.android.applicationmanager
adb shell pm hide com.nttdocomo.android.atf
adb shell pm hide com.nttdocomo.android.bugreport
adb shell pm hide com.nttdocomo.android.cloudset
(require 'ob)
(require 'ob-eval)
(defvar org-babel-default-header-args:blockdiag
'((:results . "file") (:exports . "results"))
"Default arguments to use when evaluating a blockdiag source block.")
(defun org-babel-expand-body:blockdiag (body params)
"Expand BODY according to PARAMS, return the expanded body."
(let ((vars (mapcar #'cdr (org-babel--get-vars params))))
@lurdan
lurdan / w32tex_setup.sh
Created December 28, 2015 23:59
smaller tex setup to use with imaxima.
#!/bin/sh
#TARGET=`uname -m`
INSTDIR=/c/apps/W32TeX
mkdir -p $INSTDIR/tmp
cd $INSTDIR/tmp
while read ARC
do
(require 'e2wm)
;; 2画面ファイラ化。
(setq dired-dwim-target t)
;;; wfiler / Wfiler column editing perspective
;;;--------------------------------------------------
(defvar e2wm:c-wfiler-recipe
'(- (:upper-size-ratio 0.8)