Skip to content

Instantly share code, notes, and snippets.

View adam-e-trepanier's full-sized avatar

Adam Trepanier adam-e-trepanier

View GitHub Profile
@adam-e-trepanier
adam-e-trepanier / database.yml
Created November 4, 2010 00:19
my first gist
development:
adapter: postgresql
database: mydatbase.development
username: myusername
password: mypassword
pool: 5
timeout: 5000
def show
@account = Account.find(params[:id])
end
<div class="account_info">
<%= @account.name %><br />
Account #: <%= @account.number %>
</div>
var mergableItems = MergeableFactory.ItemsToMerge<TItemUnfiltered>(QueryExecutor, form.IdsToMerge);
mergableItems.NhSession = NhSession;
mergableItems.MergeTo<TItem>(form.MergeToId.GetValueOrDefault(), CurrentUser);
return new SuccessResponseMessage(Resources.MergedSuccessfully_Accounts);
@adam-e-trepanier
adam-e-trepanier / gist:1070142
Created July 7, 2011 18:14
add warden failure app
We couldn’t find that file to show.
@adam-e-trepanier
adam-e-trepanier / gist:1070144
Created July 7, 2011 18:14
add warden failure app
We couldn’t find that file to show.
@adam-e-trepanier
adam-e-trepanier / gist:1070145
Created July 7, 2011 18:14
add warden failure app
We couldn’t find that file to show.
@adam-e-trepanier
adam-e-trepanier / gist:1070146
Created July 7, 2011 18:14
add warden failure app
We couldn’t find that file to show.
@adam-e-trepanier
adam-e-trepanier / gist:1070149
Created July 7, 2011 18:16
add warden failure app
We couldn’t find that file to show.
@adam-e-trepanier
adam-e-trepanier / gist:1075840
Created July 11, 2011 13:30
JSON strings (for now)
{\"beverage\":
{
\"approved\":null,
\"created_at\":\"2011-07-11T13:24:08Z\",
\"description\":\"The king of beers\",
\"id\":1,
\"name\":\"Bud Light\",
\"producer\":\"Anheuser-Busch\",
\"updated_at\":\"2011-07-11T13:24:08Z\"
}