Skip to content

Instantly share code, notes, and snippets.

View Keshav13142's full-sized avatar
🚀

Keshav S Keshav13142

🚀
View GitHub Profile
@Keshav13142
Keshav13142 / prompt.md
Last active July 11, 2024 10:05
LLM prompt

Question

I want you to generate a prompt which I will use to query a LLM to generate care plan data in JSON format using certain parameters I will pass in the query such as weight, height, spo2, avg_heartrate, stepCount, calories_burnt, sleep_duration_in_minutes which is the the average a daily data collected over a week. The output json format should be as follows: { "name": "<careplan_name>", "careplanItems": [ { "title": "careplan_item_title1", "description": "careplan_item_description1"

@Keshav13142
Keshav13142 / app.py
Last active July 10, 2024 13:10
Gitlab stuff
import os
import sqlite3
import requests
from datasets import DatasetDict, load_dataset
from dotenv import load_dotenv
from flask import Flask, jsonify, redirect, render_template, request
from transformers import (
DataCollatorForLanguageModeling,
GPT2LMHeadModel,
@Keshav13142
Keshav13142 / .ideavimrc
Created June 6, 2024 06:22
Idea Vim config
"source ~/.vimrc
" Find more examples here: https://jb.gg/share-ideavimrc
let mapleader=" "
" Don't use Ex mode, use Q for formatting.
map Q gq
set number relativenumber
set clipboard+=unnamed
@Keshav13142
Keshav13142 / git-demo.md
Last active April 4, 2024 10:28
Git basics

Git basics

  • Setup Git

    • Install git
    • Configure name, email for commits
       git config --global user.name "Your name"
       git config --global user.email name@example.com
@Keshav13142
Keshav13142 / vimium.json
Last active August 20, 2023 12:30
vimium config
{
"settingsVersion": "1.67.7",
"exclusionRules": [
{
"pattern": "https?://mail.google.com/*",
"passKeys": ""
},
{
"pattern": "https?://www.google.com/*",
"passKeys": "/"
@Keshav13142
Keshav13142 / .obsidian.vimrc
Last active June 3, 2024 05:13
obsidian-vimrc
" Have j and k navigate visual lines rather than logical ones
nmap j gj
nmap k gk
" Go to beginning/end of line
nmap gh ^
nmap gl $
" Cycle between tabs
exmap tabprev obcommand workspace:previous-tab
@Keshav13142
Keshav13142 / yt_enhancer.json
Last active February 3, 2024 17:25
YT enhancer config
{
"version": "2.0.122",
"settings": {
"blur": 0,
"brightness": 100,
"contrast": 100,
"grayscale": 0,
"huerotate": 0,
"invert": 0,
"saturate": 100,