Skip to content

Instantly share code, notes, and snippets.

@mii9000
mii9000 / Generic TypeScript Angular 1.X BaseController
Last active October 9, 2018 19:31 — forked from foyzulkarim/Generic TypeScript Angular 1.X BaseController
Generic TypeScript Angular 1.X Controller (Base+Child)
module App {
export class BaseController<T extends Entity> {
// my services
searchService: SearchService;
saveService: SaveService;
authService: AuthService;
url: UrlService;
// my variables
searchRequest: SearchRequest;
@werkshy
werkshy / config__initializers__active_merchant.rb
Created April 2, 2014 21:12
Mock Authorize.net CIM Gateway (ActiveMerchant). Released under the MIT License
# Initializer where we inject the mock gateway into global variable AUTHNET_GATEWAY or setup the real client
if !Rails.env.production?
ActiveMerchant::Billing::Base.mode = :test
end
$using_mock_auth_net_gateway = false
# Use FORCE_AUTH_NET to use the real Auth.net API in tests
# Use MOCK_AUTH_NET to use the mock Auth.net API even in development (good on a plane!)