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
{ | |
"message": { | |
"Prescribers": { | |
"Prescriber": [ | |
{ | |
"ID": "8", | |
"SPI": "", | |
"LastName": "Bennett", | |
"FirstName": "Adam", | |
"MiddleName": "A", |
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
2.1.9 :029 > def sample | |
2.1.9 :030?> @clinician = User.find_by_email('[email protected]') | |
2.1.9 :031?> invoice_events = @clinician.invoice_events | |
2.1.9 :032?> invoice_events = invoice_events.includes(:invoice).references(:invoices) | |
2.1.9 :033?> params = {} | |
2.1.9 :034?> params[:date] = '2010-10-10' | |
2.1.9 :035?> invoice_events = invoice_events.where("invoice_events.created_at BETWEEN ? AND ? AND payment_id IS NOT NULL", params[:date].to_date, params[:date].to_date.send(:end_of_month).end_of_day) | |
2.1.9 :036?> invoice_events = invoice_events.where("invoices.location_id=? AND (invoice_events.patient_amount < 0 OR invoice_events.insurance_amount < 0)", 602) | |
2.1.9 :037?> invoice_events | |
2.1.9 :038?> end |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
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
Payment Type Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec | |
Cash $0 $0 $0 $0 $0 $0 $0 $0 $0 $0 $0 $0 | |
Check $150.0 $0 $0 $0 $0 $0 $0 $0 $0 $0 $0 $0 | |
Credit Card $0 $0 $0 $0 $0 $0 $0 $0 $0 $0 $0 $0 | |
Direct Deposit $0 $0 $0 $0 $0 $0 $0 $0 $0 $0 $0 $0 | |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
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
Payment Type Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec | |
Don Greene-Staging $150.0 $0.0 $0.0 $0.0 $0.0 $0.0 $0.0 $0.0 $0.0 $0.0 $0.0 $0.0 | |
Shirley Wood $80.0 $0.0 $0.0 $0.0 $0.0 $0.0 $0.0 $0.0 $0.0 $0.0 $0.0 $0.0 | |
Samuel Adams $0.0 $0.0 $0.0 $0.0 $0.0 $0.0 $0.0 $0.0 $0.0 $0.0 $0.0 $0.0 | |
Eddy Bunker $120.0 $0.0 $0.0 $0.0 $0.0 $0.0 $0.0 $0.0 $0.0 $0.0 $0.0 $0.0 |
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
o = [('A'..'Z')].map { |i| i.to_a }.flatten | |
string = (0...2).map { o[rand(o.length)] }.join + rand(100..999).to_s | |
# this is not 100% accurate to gurantee that the same name wont be assigned twice but the chances are very low | |
# if we want to make 100% sure of uniqness then we must use the database to keep track |
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
text=File.open('song.txt').read # reads the lyrics from song.txt file | |
text.gsub!(/\n\n\n/, "$") # detecting song gap time after a para | |
text.each_line do |line| | |
ch = line.split("") | |
ch.collect{|c| c == '$' ? (sleep(2);print("\n\n")) : (sleep(0.08);print(c))} # prints each character and delay between para or character | |
end |
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
1. Login to AWS and launch Windows Server Machine from AWS EC2 console | |
Make sure you added Inbound rules(HTTP on 80 port and RDP on 3389 ) for this instance. RDP port will be used to remote login | |
into this instance via Remote Desktop Connection(an AWS tool available for Windows and Mac) | |
2. Once the windows Machine is ready, from your Windows Server's Firewell, open port 80 | |
3. Install IIS(8.5). Its pretty straightforward. You can follow microsoft website about the instruction. Basically we will use IIS | |
for http reverse proxy server for the Ruby On Rails application. | |
4. Now ARR(Application Request Routing) needs to be installed for the IIS. You can install it from Microsoft Web Platform Installer 5.0 | |
https://www.microsoft.com/web/downloads/platform.aspx |
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
<form action="" method="get"> | |
<input type="hidden" name="category_id" value="<%= params[:category_id] %>"> | |
<input type="hidden" name="initial_due_date" value="<%= params[:initial_due_date] %>"> | |
<input type="hidden" name="current_due_date" value="<%= params[:current_due_date] %>"> | |
<ul> | |
<li style="margin-bottom:10px;"> | |
<label class="checkbox-inline"> | |
<input class="task_type" name="completed" value="1" data-on="<i class='fa fa-check'></i>" data-off="<i class='fa fa-times'></i>" data-toggle="toggle" data-onstyle="success" data-offstyle="danger" type="checkbox" data-size="mini"> Completed | |
</label> |
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
<?xml version="1.0" encoding="utf-8"?><WhoisRecord> | |
<createdDate>1999-12-06T18:20:26Z</createdDate> | |
<updatedDate>2014-12-07T20:40:21Z</updatedDate> | |
<expiresDate>2015-12-06T18:20:25Z</expiresDate> | |
<registrant> | |
<name>Warren Weitzman</name> | |
<organization>Caramba LLC</organization> | |
<street1>10319 Westlake Drive Suite 311</street1> | |
<city>Bethesda</city> |
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
<?xml version="1.0" encoding="utf-8"?><WhoisRecord> | |
<domainName>gprinfo.com</domainName> | |
<parseCode>0</parseCode> | |
<audit> | |
<createdDate>2015-05-05 09:37:22.730 UTC</createdDate> | |
<updatedDate>2015-05-05 09:37:22.730 UTC</updatedDate> | |
</audit> | |
<registryData> | |
<domainName>gprinfo.com</domainName> |