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
with invoices as ( | |
select * | |
from {{env.schema}}.stripe_invoices_cleaned | |
where paid is true | |
and forgiven is false | |
), |
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
select | |
customer, | |
timestamp 'epoch' + date * interval '1 Second' as date, | |
forgiven, | |
subscription_id, | |
paid, | |
total, | |
timestamp 'epoch' + period_start * interval '1 Second' as period_start, | |
timestamp 'epoch' + period_end * interval '1 Second' as period_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
Verifying that +jthandy is my blockchain ID. https://onename.com/jthandy |
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
/* | |
Look for Data Scientists in the following 9 languages: | |
-- English | |
-- Spanish | |
-- French | |
-- German | |
-- Dutch | |
-- Swedish | |
-- Italian |
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 push_to_warehouse(table, data_to_push) | |
response = HTTParty.post("https://connect.rjmetrics.com/v1/client/#{cid}/table/#{table}/data?apikey=#{apikey}", | |
body: data_to_push.to_json, | |
headers: { 'Content-Type' => 'application/json' }) | |
response | |
end |
NewerOlder