- 名前(任意)
- はやみず
- Twitter: https://twitter.com/hayamiz
- Github: https://github.com/hayamiz/
- http://hayamiz.com/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
[ -z $1 ] && exit -1 | |
nakatoji_sequence(){ | |
last=$(expr 4 \* $1) | |
for i in {1..$1} ; do | |
echo -n "$(expr $last - $i \* 2 + 2),$(expr $i \* 2 - 1)," | |
echo -n "$(expr $i \* 2),$(expr 1 + $last - $i \* 2)," | |
done | sed "s/,$//g" | |
} | |
file=$(echo $1 | sed "s/\.pdf$//g") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'optparse' | |
def parse_args(argv) | |
opt = Hash.new | |
parser = OptionParser.new | |
parser.banner = "#{$0} [options] INPUT_PDF_FILE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
#include <strings.h> | |
#include <sndfile.h> | |
#include <math.h> | |
#include <complex.h> | |
#include <fftw3.h> | |
#include <assert.h> | |
// N = 2^12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; punch.el --- punctuation switcher | |
;; Copyright (C) 2013 Yuto HAYAMIZU | |
;; Author: Yuto HAYAMIZU <y.hayamizu@gmail.com> | |
;; Keywords: input method | |
;; This program is free software; you can redistribute it and/or modify | |
;; it under the terms of the GNU General Public License as published by | |
;; the Free Software Foundation, either version 3 of the License, or |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autoload -U add-zsh-hook 2>/dev/null || return | |
# | |
# Notification of local host command | |
# ---------------------------------- | |
# | |
# Automatic notification via growlnotify / notify-send | |
# | |
# | |
# Notification of remote host command |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC hoge.o | |
CCLD hoge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun wakatime-call (command) | |
"Call WakaTime COMMAND." | |
(start-process-shell-command "wakatime" "*WakaTime messages*" command)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//usr/bin/env go run $0 $@ ; exit | |
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
var sum = 0 |