Skip to content

Instantly share code, notes, and snippets.

View TejasQ's full-sized avatar
💭
💞

Tejas Kumar TejasQ

💭
💞
View GitHub Profile
@TejasQ
TejasQ / protocol.md
Last active April 12, 2023 13:11
My fitness protocol

Fitness Protocol

Quarterly Goals

  1. Q1 (October - December) & Q4 (July - September): Focus on hypertrophy
  2. Q2 (January - March) & Q3 (April - June): Focus on maximal fat loss

Workout Plan

Q1 & Q4: Hypertrophy Focus

@TejasQ
TejasQ / Description.md
Created April 1, 2020 08:58
⬢ G2i NodeJS Test

⬢ G2i NodeJS Test

Messaging acronyms are everywhere now. Do you know all of them?

Build a REST API for the World Texting Foundation, also known as WTF.

A sample JSON data file will be provided with a base set of acronym definitions. We expect you to create a NodeJS server using modern best practices for API development. Please consider the recommendations attached as this will list the items we are looking for above.

@TejasQ
TejasQ / etf-calculator.ts
Created January 28, 2023 13:48
etf calculator
let appreciation=.0238;
let initial=80000;
let lastMultiplier = 1;
for (i=0; i<50; i++) {
const a = initial;
const currentMultiplier = Math.floor(initial/80000);
initial = Math.round(initial + (initial * appreciation));
if (lastMultiplier < currentMultiplier) {
lastMultiplier = currentMultiplier;
console.log(`${i} years until ${currentMultiplier}x.`);
@TejasQ
TejasQ / dangerfile.ts
Last active January 14, 2022 16:00
Dangerfile
const { existsSync, readFileSync, writeFileSync, appendFileSync } = require("fs");
const { join } = require("path");
const { body } = danger.github.pr;
/* Fail if there's no description */
if (!body.length) {
fail("Please add a description to this PR.");
}