This file contains 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
# frozen_string_literal: true | |
require 'dotenv' | |
require 'net/http' | |
require 'json' | |
module Codewars | |
Dotenv.load('.env') | |
ENDPOINT = 'https://www.codewars.com/api/v1/' | |
API_KEY = ENV['CW_API_KEY'] |
This file contains 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 Restforce | |
attr_reader :client | |
def initialize | |
@client = initialize_client | |
@client.authenticate! | |
end | |
def initialize_client | |
config = Rails.application.secrets.salesforce |
This file contains 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
import sys | |
from flask import Flask | |
from flask import request | |
application = Flask(__name__) | |
import pyoo | |
import os | |
try: | |
spreadsheet_dir_path = sys.argv[1] | |
spreadsheet_path = spreadsheet_dir_path + str(os.listdir(spreadsheet_dir_path)[-1]) |