Skip to content

Instantly share code, notes, and snippets.

View hsaito's full-sized avatar

Hideki Saito hsaito

View GitHub Profile

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 October 22, 2014 19:42
Emacs Launch Failure on Mac
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]
### 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:
@hsaito
hsaito / gist:1a6682fcabfdaf085d2e
Created May 25, 2015 01:50
Load all subdirectory
;; 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)))
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,
[core]
editor = '/c/program files/hidemaru/hidemaru.exe' //fu8
@hsaito
hsaito / Hideki_Set_List_2011-03-20.txt
Created March 21, 2011 05:23
Song Hideki sung at Karaoke
= Songs actually sung =
時を刻む唄(Lia)
鳥の詩(Lia)
-影二つ-(riya)
メグメル 〜cuckool mix 2007〜(eufonius)
Little Wish ~ Lyrical Step(田村ゆかり)
小さなてのひら(riya)
Heart to Heart(中山愛梨沙)
遠いあの街で(皆谷尚美)
だんご大家族(茶太)
@hsaito
hsaito / emacsclient.sh
Created February 17, 2012 02:35
Emacs Client script for MacOS X
#!/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 March 15, 2012 00:24
Random test code to figure out concurrency on Go language
package main
import (
"fmt"
"time"
)
func main() {
c1 := make(chan bool)
go func() {
@hsaito
hsaito / create-random-buffer.el
Created December 8, 2012 22:01
Create random buffers
;; 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.