全自動クラウド会計ソフトfreeeの開発者向けAPIのドキュメントです。
本APIを利用することで、あなたのアプリやサービスをfreeeと連携させることができます。
if (!window.console) { | |
window.console = {}; | |
window.console.log = function() { | |
return false; | |
}; | |
} |
module CouchDBAttachments | |
def attachment(*args) | |
lambda do |env| | |
request = ActionDispatch::Request.new(env) | |
doc = DocWithAttachments.get(request.params[:doc]) | |
serve_attachment(doc, request.params[:path]) | |
end | |
end | |
private |
class SimpleBaseClass | |
def self.inherited(new_subclass) | |
puts "Hey #{new_subclass} is now a sublcass of #{self}!" | |
end | |
end | |
class SubClass < SimpleBaseClass | |
end |
module NoDoubleRaise | |
def raise(*args) | |
if $! && args.first != $! | |
warn "There is already one exception #{caller.first} raised" | |
exit! false | |
else | |
super | |
end | |
end | |
end |
# Copyright (c) Henry Poydar | |
# Modified from couchrest-rails | |
# A Rails plugin for connecting to and working with CouchDB via CouchRest | |
# https://github.com/hpoydar/couchrest-rails/ | |
require 'sunspot_couch.rb' | |
begin |
Titanium.Geolocation.accuracy = Titanium.Geolocation.ACCURACY_BEST; | |
Titanium.Geolocation.distanceFilter = 0; | |
var win = Ti.UI.createWindow({backgroundColor: '#fff'}); | |
var label = Ti.UI.createLabel(); | |
win.add(label); | |
win.open(); | |
function reportPosition(e) { | |
if (!e.success || e.error) { |
# JSON-encoded error and redirect results for Devise controllers. | |
# This overrides an internal method of Devise, so be careful when updating Devise! | |
# | |
# Usage: | |
# | |
# class Users::RegistrationsController < Devise::RegistrationsController | |
# include DeviseJsonAdapter | |
# end | |
# | |
# devise_for :users, :controllers => { :registrations => "users/registrations" } |
var search = Titanium.UI.createSearchBar({ | |
barColor:'#000', | |
showCancel:true, | |
height:43, | |
top:0 | |
}); | |
var tableView = Titanium.UI.createTableView({ | |
top:40, | |
data:{title:'Please perform a search'} |