Skip to content

Instantly share code, notes, and snippets.

module Accounting
module Handling
def revenue_account(name)
Plutus::Revenue.find_or_create_by(:name => name)
end
def asset_account(name)
Plutus::Assets.find_or_create_by(:name => name)
end
module Accounting
module Handling
def revenue_account(name)
Plutus::Revenue.find_or_create_by(:name => name)
end
def asset_account(name)
Plutus::Assets.find_or_create_by(:name => name)
end
class DeadbeatConnectionRelease
def initialize(app)
@app = app
end
#This is a brittle hack for what appears to be a bug in ActiveRecord 4:
#connections aren't being properly released after their owning threads die
def call(env)
response = @app.call(env)
response[2] = ::Rack::BodyProxy.new(response[2]) do
class DeadbeatConnectionRelease
def initialize(app)
@app = app
end
#This is a brittle hack for what appears to be a bug in ActiveRecord 4:
#connections aren't being properly released after their owning threads die
def call(env)
response = @app.call(env)
response[2] = ::Rack::BodyProxy.new(response[2]) do
class DeadbeatConnectionRelease
def initialize(app)
@app = app
end
#This is a brittle hack for what appears to be a bug in ActiveRecord 4:
#connections aren't being properly released after their owning threads die
def call(env)
response = @app.call(env)
response[2] = ::Rack::BodyProxy.new(response[2]) do
<html><head></head>
<body>
<table>
<tr>
<th>Language</th>
<th>Type</th>
<th>Color</th>
</tr>
<tr>
#!/bin/env bash
git branch savepoint
for branch in $*; do
echo "git pull $(echo $branch | sed 's#/# #')" >> .git/merges.sh
done
source .git/merges.sh
class DeadbeatConnectionRelease
def initialize(app)
@app = app
end
#This is a brittle hack for what appears to be a bug in ActiveRecord 4:
#connections aren't being properly released after their owning threads die
def call(env)
response = @app.call(env)
response[2] = ::Rack::BodyProxy.new(response[2]) do
#!/bin/env bash
#path old-file old-hex old-mode new-file new-hex new-mode
path=$1
old=$2
new=$5
#Per git(1):
#The file parameters can point at the user’s working file (e.g. new-file in "git-diff-files"), /dev/null (e.g.
#old-file when a new file is added), or a temporary file (e.g. old-file in the index). GIT_EXTERNAL_DIFF should
[user]
email = [email protected]
name = Judson
[branch]
autosetupmerge = true
[color]
branch = true
diff = true
grep = true
interactive = true