Skip to content

Instantly share code, notes, and snippets.

View hsaito's full-sized avatar

Hideki Saito hsaito

View GitHub Profile
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.
@hsaito
hsaito / gist:4254461
Created December 10, 2012 23:51
Some font settings for Emacs to fix those square characters
;; 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)
(set-fontset-font
(frame-parameter nil 'font)
'japanese-jisx0208
@hsaito
hsaito / gist:4389429
Created December 27, 2012 16:12
Some init.el lines to confine various setting files to .emacs.d (given it's setup somewhere)
;; 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))

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]