After installing the gem you must configure the framework and tell it what it should monitor and how it should audit it.
Example :
require 'watchy'| # | |
| # How to use : | |
| # bc_client = AutoRefreshToken.new | |
| # bc_client.post('/api/v1/user/orders', params.to_json) | |
| # | |
| require 'oauth2' | |
| class AutoRefreshToken |
| #!/usr/bin/env ruby | |
| require 'securerandom' | |
| require 'bitcoin' | |
| require 'digest' | |
| LIST = './wordlist.txt' | |
| ROLLS_PER_WORD = 5 | |
| DICE_FACES = 6 | |
| WORDS_PER_PHRASE = 12 |
| .row.alerts | |
| .span12 | |
| - unless flash.blank? | |
| - [:notice, :alert, :warning, :error].select{ |type| not flash[type].blank? }.each do |type| | |
| .flash | |
| %div{:class => "alert alert-#{type}"} | |
| %a.close{ 'data-dismiss' => 'alert' }= '×'.html_safe | |
| != flash[type] |
This document describes the Bitcoin-Central.net v1 API.
| <h1>Private key for : <%= @address %></h1> | |
| <p>Generated at : <%= @now %></p> | |
| <h2>Block Explorer</h2> | |
| <img src="bbe_<%= @address %>.png"> | |
| <h2>Private key : <%= @private_key %></h2> | |
| <img src="<%= @private_key %>.png"> |
| #!/usr/bin/ruby | |
| require 'erb' | |
| require 'digest' | |
| require 'date' | |
| B58Chars = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz" | |
| B58Digits = B58Chars.split('') | |
| B58Base = B58Chars.length |