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
startup_message off | |
shell /bin/zsh | |
escape ^Zz | |
defscrollback 10000 | |
defencoding utf8 | |
defkanji utf8 | |
encoding utf8 utf8 | |
hardstatus alwayslastline "[%02c] %`%-w%{=b bw}%n %t%{-}%+w" | |
# hardstatus alwayslastline "%`%-w%{=b bw}%n %t%{-}%+w" | |
# caption always "%{= wb} %-w%{=bu dr}%n %t%{-}%+w %= %{=b wk} [%l] %{=b wb}%y/%m/%d(%D) %{=b wm}%c" |
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/swift | |
import Cocoa | |
import IOBluetooth | |
var TARGET_NAME = "xxxxxx-bt" | |
var TARGET_ADDR = "ab-cd-ef-12-34-56" | |
var SCAN_DURATION = 10 | |
class BluetoothManager: NSObject, IOBluetoothDeviceInquiryDelegate { |
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/sh | |
function show_usage_and_exit() { | |
echo "Usage: finder.sh DIRECTORY_NAME" | |
exit | |
} | |
if [ $# -lt 1 ] | |
then | |
show_usage_and_exit |
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/sh | |
# ---- ここから設定箇所 ---- | |
# Proceedingsの中身をHDDにコピーして,その中の"Settings"ディレクトリを以下に指定してください. | |
ROOT_DIR="/Users/river24/Desktop/EIC2015G/Settings" | |
# 処理中の一時ファイルを出力する先を指定してください. | |
TMP_DIR="/tmp" |
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
diff -urN a/Makefile.in b/Makefile.in | |
--- a/Makefile.in 2015-03-10 11:52:31.000000000 +0900 | |
+++ b/Makefile.in 2015-03-10 11:52:50.000000000 +0900 | |
@@ -56,6 +56,6 @@ | |
-D_XOPEN_SOURCE_EXTENDED=1 -D_GNU_SOURCE=1 -D__EXTENSIONS__=1 -D_HPUX_SOURCE=1 \ | |
-D_POSIX_MAPPED_FILES=1 -D_POSIX_SYNCHRONIZED_IO=1 \ | |
-DPIC=1 -D_THREAD_SAFE=1 -D_REENTRANT=1 -DNDEBUG | |
-CFLAGS = -Wall -pedantic -fPIC -fsigned-char -O3 -fomit-frame-pointer -fforce-addr @MYOPTS@ | |
+CFLAGS = -Wall -pedantic -fPIC -fsigned-char -O3 -fomit-frame-pointer @MYOPTS@ | |
LD = @LD@ |
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
sudo port uninstall tmux-pasteboard | |
sudo port uninstall tmux | |
sudo port clean tmux | |
sudo port -s patch tmux | |
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_tmux/tmux/work/tmux-1.9a | |
curl -kL "https://gist.githubusercontent.com/waltarix/1399751/raw/e60e879335bf3b91fef4592b194cc524bcb95388/tmux-ambiguous-width-cjk.patch" | sudo patch -p1 | |
curl -kL "https://gist.githubusercontent.com/waltarix/1399751/raw/5914827c8f7fecfdb73c641e02c471acd55eb2af/tmux-pane-border-ascii.patch" | sudo patch -p1 | |
cd - | |
sudo port -s install tmux | |
sudo port install tmux-pasteboard |
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
require 'prime' | |
range = 510..531 | |
range.each do |num| | |
if Prime.instance.prime?(num) | |
print "#{num} is a prime : " | |
else | |
print "#{num} is not a prime : " | |
end | |
factors = num.prime_division |
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/sh | |
# ---- ここから設定箇所 ---- | |
# Proceedingsの中身をHDDにコピーして,その中の"Settings"ディレクトリを以下に指定してください. | |
ROOT_DIR="/Users/river24/Desktop/EIC2014G/Settings" | |
# 処理中の一時ファイルを出力する先を指定してください. | |
TMP_DIR="/tmp" |
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
;; clipboardの共有 | |
;; Original : http://hakurei-shain.blogspot.jp/2010/05/mac.html | |
(when darwin-p | |
(defun copy-from-osx () | |
(shell-command-to-string "pbpaste")) | |
(defun paste-to-osx (text &optional push) | |
(let ((process-connection-type nil)) | |
(start-process "pbcopy-from-emacs" "*Messages*" "pbcopy-from-emacs" text))) | |
(setq interprogram-cut-function 'paste-to-osx) | |
(setq interprogram-paste-function 'copy-from-osx)) |
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/sh | |
# ---- ここから設定箇所 ---- | |
# Proceedingsの中身をHDDにコピーして,その中の"Settings"ディレクトリを以下に指定してください. | |
ROOT_DIR="/Users/river24/Desktop/EIC2013G/Settings" | |
# 処理中の一時ファイルを出力する先を指定してください. | |
TMP_DIR="/tmp" |
NewerOlder