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
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
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
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
#!/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
--- Portfile.bak 2010-08-09 13:54:08.000000000 +0900 | |
+++ Portfile 2010-08-09 13:57:06.000000000 +0900 | |
@@ -89,9 +89,9 @@ | |
variant utf8 { | |
post-build { | |
- system "mkdir dict/utf-8.d" | |
+ system "mkdir ${worksrcpath}/dict/utf-8.d" | |
foreach DIC ${dics} { | |
- system "nkf -w < dict/${DIC} > dict/utf-8.d/${DIC}" |
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/EIC2011S/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
#!/bin/sh | |
# ---- ここから設定箇所 ---- | |
# IEICEの2011年度ソサイエティ大会のProceedingsを少し美味しくするシェルスクリプト | |
# https://gist.github.com/1213484 | |
# を使って少し美味しくなった状態の"Settings"ディレクトリを指定して下さい. | |
ROOT_DIR="/Users/river24/Desktop/EIC2011S/Settings" | |
# 処理中の一時ファイルを出力する先を指定してください. |
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/EIC2012G/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
#!/bin/sh | |
# ---- ここから設定箇所 ---- | |
# IEICEの2012年03月の総合大会のProceedingsを少し美味しくするシェルスクリプト | |
# https://gist.github.com/2019544 | |
# を使って少し美味しくなった状態の"Settings"ディレクトリを指定して下さい. | |
ROOT_DIR="/Users/river24/Desktop/EIC2012G/Settings" | |
# 処理中の一時ファイルを出力する先を指定してください. |
OlderNewer