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
source 'https://rubygems.org' | |
gem 'bcrypt-ruby', :require => 'bcrypt' |
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
# unauthenticated client | |
client = Subledger.new | |
identity_args = { :description => '', | |
:email => '' } | |
identity, key = client. | |
identities. | |
create identity_args |
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
{ | |
"id": "TqNGddkj4zU84KGjf5eYq2", | |
"book": "hTEokfDKuFi0EdSEOuUE14", | |
"report": "KdYr7C7ySmdohI7Bo7Z3H3", | |
"effective_at": "2013-10-02T06:22:08Z", | |
"total_accounts": 12, | |
"progress": { | |
"percentage": 100 | |
}, | |
"rendered_at": "2013-10-02T06:22:08.798Z", |
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
irb(main):011:0> [1][0..-1] | |
=> [1] # makes sense | |
irb(main):012:0> [1][1..-1] | |
=> [] # WTF? | |
irb(main):013:0> [1][2..-1] | |
=> nil # makes sense |
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
With single satoshi addresses | |
----------------------------- | |
Top 100% | |
--------------------------------------------------------------------------------------------------- | |
| Total | Percentage | Average | Min | Max | | |
--------------------------------------------------------------------------------------------------- | |
| 0.00216157 | 0.00000002 | 0.00000001 | 0.00000001 | 0.00000001 | | |
| 0.00253359 | 0.00000002 | 0.00000001 | 0.00000001 | 0.00000004 | | |
| 0.04517230 | 0.00000037 | 0.00000021 | 0.00000004 | 0.00000039 | |
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
ruby: 2.0.0-p451 | master *% | |
v3 $ ./example.rb | |
./example.rb:14:in `<module:Subledger>': Subledger::BadRequest | |
from ./example.rb:3:in `<main>' |
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 'uri' | |
require 'reel' | |
require 'subledger/json' | |
require 'subledger/uuid' | |
module Subledger | |
module Server | |
class Reel < Reel::Server::HTTP |
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
E, [2014-04-06T12:10:05.837299 #58542] ERROR -- : MyServer crashed! | |
Reel::StateError: already processing a request |
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
{ | |
"effective_at": "ISO8601 Date/Time", | |
"description": "Free form text", | |
"reference": "URL", | |
"lines": [ | |
{ | |
"account": "account_id", | |
"value": { | |
"type": "debit", | |
"amount": "10.00" |
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
Q) What is Subledger? | |
A) Subledger is a modern double-entry ledger and financial report API for mobile and web app developers. | |
Q) What is Subledger's purpose? | |
A) Subledger's purpose is to give developers the tools to maintain more accurate, detailed and actionable | |
financial information than they would if they built it themselves. | |
Q) Is Subledger difficult to use? | |
A) No. It is easier, less expensive and less risky than building something equivalent. Subledger customers have greatly | |
simplified their code bases, reduced their operational responsibility, and reduced the latency and complexity of their |
OlderNewer