Skip to content

Instantly share code, notes, and snippets.


Hideki Saito hsaito

View GitHub Profile
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/
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 ( 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 / gist:4389429
Created Dec 27, 2012
Some init.el lines to confine various setting files to .emacs.d (given it's setup somewhere)
View gist:4389429
;; Recentf
(setq recentf-save-file (expand-file-name ".recentf" user-emacs-directory))
;; SKK
(setq skk-user-directory (expand-file-name (concat user-emacs-directory ".skk")))
;; Save point position between sessions
(require 'saveplace)
(setq-default save-place t)
(setq save-place-file (expand-file-name ".places" user-emacs-directory))
hsaito / gist:4254461
Created Dec 10, 2012
Some font settings for Emacs to fix those square characters
View gist:4254461
;; Font Settings
(when (>= emacs-major-version 23)
(setq fixed-width-use-QuickDraw-for-ascii t)
(setq mac-allow-anti-aliasing t)
(set-face-attribute 'default nil
:family "monaco"
:height 140)
(frame-parameter nil 'font)
View create-random-buffer.el
;; Create Random Buffer
;; by Hideki Saito (
;; Summary: Creates an empty buffer with random numbered name.
;; Background:
;; Just wanted to make extra "scratch" buffer.
;; Limitations:
;; Does not handle buffer name collision.
hsaito / gotest.go
Created Mar 15, 2012
Random test code to figure out concurrency on Go language
View gotest.go
package main
import (
func main() {
c1 := make(chan bool)
go func() {
hsaito /
Created Feb 17, 2012
Emacs Client script for MacOS X
/Applications/ -n "$1"
if test ${ret} -eq 0
echo "Success"
/Applications/ "$1" &
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 =
メグメル 〜cuckool mix 2007〜(eufonius)
Little Wish ~ Lyrical Step(田村ゆかり)
Heart to Heart(中山愛梨沙)
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,