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
// Amazon購入履歴のCSVエクスポート | |
// | |
// 使い方: | |
// 1. 全部コピーする (右上の Raw をクリックした先でやるのが楽) | |
// 2. Amazon の注文履歴ページ ( https://www.amazon.co.jp/gp/css/order-history/ ) を開く | |
// 3. F12 または 右クリ→要素の検証 とかで出てくる開発者ツールのコンソール (JavaScript REPL) にペースト | |
// 4. エンターで実行 | |
// (Firefox はなんか allow pasting とタイプしろみたいなことを言われるので従う) | |
// 5. しばらく待つと、コンソールに合計金額が表示され、CSVが保存される | |
// |
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
// Amazonの注文履歴をTSV形式で出力するスクリプト | |
// | |
// 2015-01-01 時点での DOM 構造に対応, GoogleCrome, Opera でテスト済。 | |
// formatEntry関数を書き換えれば自由な書式で出力できます。 | |
// | |
// 参考: | |
// - Amazonの注文履歴をCSV形式にして出力するスクリプト | |
// https://gist.github.com/arcatdmz/8500521 | |
// - Amazon で使った金額の合計を出す奴 (2014 年バージョン) | |
// https://gist.github.com/polamjag/866a8af775c44b3c1a6d |
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 "formula" | |
class Emacs < Formula | |
homepage "https://www.gnu.org/software/emacs/" | |
stable do | |
url "http://ftpmirror.gnu.org/emacs/emacs-24.5.tar.xz" | |
mirror "https://ftp.gnu.org/pub/gnu/emacs/emacs-24.5.tar.xz" | |
sha256 "dd47d71dd2a526cf6b47cb49af793ec2e26af69a0951cc40e43ae290eacfc34e" |
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
INCLUDEPATH = /opt/local/include | |
CXXFLAGS = -I${INCLUDEPATH} | |
LIBS += -lopencv_core -lopencv_imgproc -lopencv_highgui | |
slic: main.cpp slic.cpp | |
g++ ${CXXFLAGS} main.cpp slic.cpp -o slic |
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
# rspec continuous runner script using watchr, growl and spork | |
# run this script via 'watchr' | |
# gist at: https://gist.github.com/797853/ | |
# based on: https://gist.github.com/276317/ | |
# you may want to install image file for growl. | |
if RUBY_VERSION >= "1.9" # multibyte encoding only supported in Ruby 1.9 | |
Encoding.default_external = "UTF-8" | |
end |