View CVP SQL gist
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
CREATE TABLE Org | |
( | |
id INT NOT NULL AUTO_INCREMENT, | |
marketplace VARCHAR NOT NULL, | |
created_at DATE NOT NULL, | |
updated_at DATE NOT NULL, | |
PRIMARY KEY (id) | |
); | |
CREATE TABLE Surveyor |
View index.css
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
*{ | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
font-family: 'Poppins', sans-serif; | |
} | |
body{ | |
min-height: 100vh; | |
display: flex; | |
align-items: center; |
View index.html
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IEne=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="style.css"> | |
<title>Regisration Form </title> |
View script.js
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
var form = document.querySelector("form"); | |
var nextBtn = form.querySelector(".nextBtn"); | |
var backBtn = form.querySelector(".backBtn"); | |
var allInput = form.querySelectorAll(".input-field"); | |
nextBtn.addEventListener("click", () => { | |
allInput.forEach(input => { | |
if(input.value !== ""){ | |
form.classList.add('secActive'); | |
}else{ |
View llm.py
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
def get_prompt_from_azure(message: str): | |
# Create an openAI connection every time the request is sent ! | |
AZURE_API_ENDPOINT = os.environ.get("AZURE_API_ENDPOINT") | |
AZURE_API_KEY = os.environ.get("AZURE_API_KEY") | |
AZURE_API_DEPLOYMENT_NAME = "gpt-35-turbo-france" | |
AZURE_API_VERSION = "2023-05-15" | |
url = f"{AZURE_API_ENDPOINT}/openai/deployments/{AZURE_API_DEPLOYMENT_NAME}/chat/completions?api-version={AZURE_API_VERSION}" |
View manual_memory_management.c
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
#include <stdio.h> | |
#include <stdlib.h> | |
typedef struct Node { | |
size_t size; | |
struct Node* next; | |
} Node; | |
typedef struct { | |
void* pool_start; |
View human_eval_test_data.txt
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
---------------------------------------WRITING INFO ABOUT TEST 0---------------------------------------- | |
-------------PROMPT---------------- | |
from typing import List | |
def has_close_elements(numbers: List[float], threshold: float) -> bool: | |
""" Check if in given list of numbers, are any two numbers closer to each other than | |
given threshold. |