Skip to content

Instantly share code, notes, and snippets.

Avatar

Hideki Saito hsaito

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am hsaito on github.
  • I am unsignedint (https://keybase.io/unsignedint) on keybase.
  • I have a public key whose fingerprint is 70D1 E333 C8C9 D4A2 66C2 4C65 F609 CA8D 7F08 5BA3

To claim this, I am signing this object:

@hsaito
hsaito / gist:5db14e395c6e0464e71c
Created Oct 22, 2014
Emacs Launch Failure on Mac
View gist:5db14e395c6e0464e71c
Sampling process 94592 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling Emacs (pid 94592) every 1 millisecond
Process: Emacs [94592]
Path: /usr/local/Cellar/emacs/24.4/Emacs.app/Contents/MacOS/./Emacs
Load Address: 0x100000000
Identifier: org.gnu.Emacs
Version: Version 24.4 (9.0)
Code Type: X86-64
Parent Process: zsh [43511]
View gist:2f90a614fb86f34c9ecf
### Keybase proof
I hereby claim:
* I am hsaito on github.
* I am unsignedint (https://keybase.io/unsignedint) on keybase.
* I have a public key whose fingerprint is 1066 3928 7B0B E7CD A0CB 3686 1FDF D937 AFF2 E40B
To claim this, I am signing this object:
View gist:1a6682fcabfdaf085d2e
;; Site Lisp Path
(if (fboundp 'normal-top-level-add-subdirs-to-load-path)
(let* ((my-lisp-dir "~/.emacs.d/site-lisp/")
(default-directory my-lisp-dir))
(setq load-path (cons my-lisp-dir load-path))
(normal-top-level-add-subdirs-to-load-path)))
View gist:61187
Experiments in revision control: Curry recipe.
My personal recipe for Japanese curry, which has mutated over the years and is
now open-source thanks to github, hot damn. Some of the ingredients are not
very Japanese, but curry came to Japan from England which got it from India to
begin with, so whatever.
1.5 - 2 lbs. of meat, prefer thin-sliced beef (komagire), pork works, too.
Thin-sliced stuff is always best, but in a pinch stewing beef works. Bacon
works surprisingly well. Chicken will work, technically, but if you must,
@hsaito
hsaito / Hideki_Set_List_2011-03-20.txt
Created Mar 21, 2011
Song Hideki sung at Karaoke
View Hideki_Set_List_2011-03-20.txt
= Songs actually sung =
時を刻む唄(Lia)
鳥の詩(Lia)
-影二つ-(riya)
メグメル 〜cuckool mix 2007〜(eufonius)
Little Wish ~ Lyrical Step(田村ゆかり)
小さなてのひら(riya)
Heart to Heart(中山愛梨沙)
遠いあの街で(皆谷尚美)
だんご大家族(茶太)
@hsaito
hsaito / emacsclient.sh
Created Feb 17, 2012
Emacs Client script for MacOS X
View emacsclient.sh
#!/bin/sh
/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -n "$1"
ret=$?
if test ${ret} -eq 0
then
echo "Success"
else
/Applications/Emacs.app/Contents/MacOS/Emacs "$1" &
fi
@hsaito
hsaito / gotest.go
Created Mar 15, 2012
Random test code to figure out concurrency on Go language
View gotest.go
package main
import (
"fmt"
"time"
)
func main() {
c1 := make(chan bool)
go func() {
View create-random-buffer.el
;; Create Random Buffer
;; by Hideki Saito (hidekis@gmail.com)
;;
;; Summary: Creates an empty buffer with random numbered name.
;;
;; Background:
;; Just wanted to make extra "scratch" buffer.
;;
;; Limitations:
;; Does not handle buffer name collision.