Skip to content

Instantly share code, notes, and snippets.

View BenLiyanage's full-sized avatar

Ben Liyanage BenLiyanage

View GitHub Profile
@BenLiyanage
BenLiyanage / main.py
Created September 29, 2023 21:13
lever candidate evaluation
import requests
from requests.auth import HTTPBasicAuth
from environs import Env
import openai
import ast
import csv
# Initialize environs and OpenAI
env = Env()
env.read_env()
@BenLiyanage
BenLiyanage / main.py
Created September 29, 2023 18:27
lever candidate evaluation
import requests
from requests.auth import HTTPBasicAuth
from environs import Env
import openai
# Initialize environs and OpenAI
env = Env()
env.read_env()
openai.api_key = env("OPENAI_API_KEY")
@BenLiyanage
BenLiyanage / two-pass-example.rb
Last active May 15, 2017 19:39
Recipe Demonstrating how chef's two pass model, and lazy evaluation interacts
node.set[:lazy] = false
log 'compile evaluation' do
message node[:lazy].to_s
end
# false
log 'execute evaluation' do
message lazy { node[:lazy].to_s }
end