Skip to content

Instantly share code, notes, and snippets.

View dogwood008's full-sized avatar

KITAGAWA Daisuke dogwood008

View GitHub Profile
@dogwood008
dogwood008 / make_hash_from_clipboard.rb
Created June 29, 2016 05:11
クリップボード内の改行で区切られた文字を、それぞれキーと値とするハッシュに変換し、クリップボードへコピーする。(mac専用)
## クリップボード内の改行で区切られた文字を、それぞれキーと値とするハッシュに変換し、クリップボードへコピーする。(mac専用)
require 'open3'
hash = `pbpaste`.split("\n").inject({}) { |h, w| h[w] = w; h }
output = ''
output << '{' + "\n"
hash.each do |k, v|
output << " '#{k}': '#{v}',\n"
end
@dogwood008
dogwood008 / read_kabu_plus_csv_on_backtrader.ipynb
Created January 16, 2021 12:42
「株のシステムトレードをしよう - 1から始める株自動取引システムの作り方」で使用しているバックテスト https://bit.ly/3qvOehD
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.