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
gem install coinbase |
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 'coinbase' | |
coinbase = Coinbase::Client.new('API Key', 'API Secret') | |
p coinbase.balance.format |
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
;まずは必要なパッケージをインストールする | |
# yum install gcc openssl-devel libdbi-devel.x86_64 boost-devel qrencode-devel.x86_64 gcc-c++ compat-gcc-32 compat-gcc-32-c++ db4-devel.x86_64 db4-cxx.x86_64 dbus-cxx-devel.x86_64 boost-thread boost-devel libodb-boost-devel.x86_64 | |
;monacoindのビルドで以下のようなエラーが出るので対応 | |
;usr/bin/ld: cannot find -lboost_thread | |
;collect2: ld returned 1 exit status | |
;make: *** [litecoind] Error 1 | |
# cd /usr/lib64 |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDVh60HztgYgCr44HjyrxGqaTf0+IKxD7xTy7Q5w+uCV/yJHL9av+fGyCWsGKj/TZO8OGjW3kk5Py/tzhjjYVb1kU3D1jCbGxf56Dy3e5PQn3RNhEI6jlZAcZBr6AMfGV3Z+DktU7uXZFJZWO45xt/vluL7jpNlsB9SV3Hrr8TbZ2Fs8/g+8pZOMbMOfEnS7Uqff26tHG0GCU5FaQF2icY0XDvwUR8kR7ZdHRCIbcAtJmDYwKiTdThOmEkUzoqDUhfYemoCZYBUPjDvqQMEkNcc11Qj+jhBXupnpPZEa2fyK3vPLTT1kYjvCiFpw9uQIFu4famTmapwQIq5XQFF4Z/r [email protected] |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<script src="bower_components/webcomponentsjs/webcomponents.js"></script> | |
<link rel="import" href="bower_components/polymer/polymer.html"> | |
<title></title> | |
</head> | |
<body> | |
<p>foo</p> |
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
先週末、ポーカー大会へ行って参りました!!!優勝は出来なかったけど、すっごい楽しかったです。 | |
以下 fb より転載です。 | |
今日は渋谷のアドアーズのポーカー大会。撮影NGなのが悲しす。 | |
結果は6/16位 | |
会場に到着するといつぞやの夜、僕が全く歯が立たずフルボッコにしてくれた人がいた。今日の大会は8人ずつ2テーブルに別れて始まった。 | |
僕のテーブルにはその人が居なかった。正直うれしかった。 | |
そのおかげか、初期の持ちチップから大きく減らすことも増やすこともなくしばらく切り抜けれた。2テーブル合わせて残り10人になった頃合いで1テーブルに。 | |
当然のようにその人はいた。しかも持ってる量のチップがハンパない。初期に貰えるチップの8倍くらい持ってるようだった。 |
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
var Remote = require('ripple-lib').Remote; | |
var remote = new Remote({ | |
// see the API Reference for available options | |
servers: [ 'wss://s1.ripple.com:443' ] | |
}); | |
var options = { | |
taker_gets: { | |
value: "1", |
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
get_ask: (callback) -> | |
promise = new Promise (resolve) -> | |
_public_api.depth('btc_jpy').then (result) -> | |
resolve(result); | |
promise.then (result) -> | |
console.log("#{result}"); |
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
get_balance: () -> | |
_api.getInfo().then (result) -> | |
_assets_jpy = result['deposit']['jpy']; | |
_assets_btc = result['deposit']['btc']; | |
@base_assets_jpy = result['deposit']['jpy']; | |
@base_assets_btc = result['deposit']['btc']; | |
これが子クラスで定義しているメソッドで、@base_assets_jpy |
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
無人島にAさん、Bさん、Cさんが流れついたとする。国へ帰る見込みがほとんどなく当然その状況では誰も日本円他法定通貨は欲しがらずまったく価値がない状況だとする | |
Aさん食料つくる | |
Bさん飲料つくる | |
Cさん食料つくる | |
という感じで漂着当初は食いつなぐために日々その日の全ての時間をついやしていました。当然みんなでその日得られた飲食物をわけあってました。 | |
しばらくすると食料と飲料の生産効率があがり貯蔵できるようになってきました。そうなると余った時間を使って嗜好品も生産するようになってきました。 | |
ここで3人は通貨みたいなものが必要だねという話になりました。 | |
はじめはそこらにあった100個の貝殻を通貨とみたてて3人の合意のもと流通させてみました。当初は予想通りうまく流通して飲食物や嗜好品が交換されてそれに伴い |
OlderNewer