Skip to content

Instantly share code, notes, and snippets.

View heymonicakay's full-sized avatar
🤓

Monica Kay heymonicakay

🤓
View GitHub Profile
/**********
Runtime validation
***********/
/**********
shared/types/luna/patient/me
***********/
const DecoratedPatientSchema = z.object(
{
@heymonicakay
heymonicakay / README_HOW_TO.md
Last active January 29, 2022 01:20
Some tips on how to create a readable README to show off your project.

Add a README To Your Project

You can add a README file to your repository to tell other people why your project is useful, what they can do with your project, and how they can use it.

What's in a README?

README files typically include information on:

  • Primary Features - What does this project do?
  • Target Audience - Who is it for?
  • Purpose - Why the project is useful/what problem does it solve?
-- 1
INSERT INTO `Category`
VALUES (null, 'Sports')
-- 2
INSERT INTO `Category`
VALUES (null, 'Modern Parent')
-- 3
INSERT INTO `Category`
VALUES (null, "Mac O'Clock")
-- 4
@heymonicakay
heymonicakay / Prompt.md
Last active October 21, 2020 01:56
Pythagorean Triplet Check

Given an array of integers, determine whether it contains a Pythagorean triplet. Recall that a Pythogorean triplet (a, b, c) is defined by the equation a2+ b2= c2.

Example 1:
Input: [2, 5, 6, 7, -4, 3]
Output: true
Explanation: 3 squared + -4 squared = 5 squared

Example 2:
Input: [25, -4, 10, 7]

Output: false

@heymonicakay
heymonicakay / ConvertToF.js
Last active October 21, 2020 02:25
Convert Celsius To Fahrenheit
const convertToF = (celsius) => {
let fahrenheit = ((celsius * 9) / 5) + 32;
return fahrenheit;
}
console.log(convertToF(20))