This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Carrier Group Number Lookup | |
| # Reads invoice CSV, looks up carrier_group_number from CoveragePeriod, | |
| # writes mapping CSV to /tmp/carrier_group_numbers.csv | |
| # | |
| # Prerequisites: invoice-ees-by-account-carrier-group.csv must be at /tmp/ on the pod | |
| # Run on pod via: bin/rails runner /tmp/carrier_group_number_lookup.rb | |
| # Output: /tmp/carrier_group_numbers.csv | |
| require 'csv' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Request to https://api.finder.healthcare.gov/v3.0/getIFPPlanBenefits --> | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <p:PlanBenefitRequest xmlns:p="http://hios.cms.org/api" xmlns:p1="http://hios.cms.org/api-types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hios.cms.org/api hios-api-11.0.xsd "> | |
| <p:Enrollees> | |
| <p1:DateOfBirth>1994-05-06</p1:DateOfBirth> | |
| <p1:Gender>Male</p1:Gender> | |
| <p1:Relation>SELF</p1:Relation> | |
| <p1:InHouseholdIndicator>true</p1:InHouseholdIndicator> | |
| </p:Enrollees> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class AddUpsertTriggers < ActiveRecord::Migration | |
| def up | |
| execute %Q{ | |
| CREATE FUNCTION upsert_network_providers() RETURNS TRIGGER AS | |
| $$ | |
| DECLARE | |
| prev RECORD | |
| BEGIN | |
| SELECT * INTO prev FROM network_providers | |
| WHERE provider_id = NEW.provider_id |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ###* | |
| # Base ErrorDialog class | |
| # | |
| # @class ErrorDialog | |
| ### | |
| class ErrorDialog extends DialogDecorator | |
| ###* | |
| # @method getDialog | |
| # @return {jQuery} Dialog |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def my_method(arg1, arg2) | |
| return {}.tap do |ret| | |
| arg1.each do |row| | |
| ret[row['var']] = get_value | |
| ret[row['var2'] = arg2 | |
| end | |
| end | |
| end | |
| def my_method(arg1, arg2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class AutoComplete | |
| constructor : (el)-> | |
| @el = $(el) | |
| this.add_event_listeners() | |
| add_event_listeners : ()-> | |
| @el.on 'keyup', ()=> | |
| this.update_results() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| meta_categories: | |
| - Hair | |
| - Nails | |
| service_categories: | |
| - Cat1 | |
| - Cat2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| logger = Log4r::Logger.new("LB") | |
| logger.level = Log4r::INFO | |
| sublogger = Log4r::Logger.new("LB::MyModule") | |
| sublogger.level => 2 # Log4r::INFO | |
| subsublogger = Log4r::Logger.new("LB::MyModule::MyClass") | |
| subsublogger.level => 2 # Log4r::INFO | |
| # this is set at time of inheritance |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| context "#start_phone_call", :focus do | |
| before :each do | |
| controller.stubs(:current_user).returns(harry) | |
| end | |
| let(:arnold) do | |
| FactoryGirl.build_stubbed(:lawyer, first_name: "Arnold") | |
| end | |
| let(:harry) do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - EventMachine::schedule do | |
| + EventMachine.run do | |
| client = EventMachine::HttpRequest.new(uri) | |
| http = yield(client) | |
| - http.errback { future.succeed(Response::NetworkError.new) } | |
| - http.callback { future.succeed(Response.parse(http.response)) } | |
| + http.errback { | |
| + future.succeed(Response::NetworkError.new) | |
| + EM.stop |
NewerOlder