Skip to content

Instantly share code, notes, and snippets.

View SaiAshish9's full-sized avatar
:octocat:
I love simplifying things

SaiAshish SaiAshish9

:octocat:
I love simplifying things
View GitHub Profile
from langchain.llms import OpenAI
from langchain.prompts import PromptTemplate
from langchain.chains import LLMChain
from langchain.chains import SequentialChain
from secret_key import openapi_key
import os
os.environ['OPENAI_API_KEY'] = openapi_key
llm = OpenAI(temperature=0.7)
{
"_id": {
"$oid": "66fe9b3ebf4d1700076fb639"
},
"version": "v3",
"description": "",
"stepsVersion": 3,
"type": "clip",
"title": "SubRule - Rule V2",
"categoryId": {
@SaiAshish9
SaiAshish9 / FrontendFrameworksPopularity.md
Created July 22, 2023 12:36 — forked from tkrotoff/FrontendFrameworksPopularity.md
Front-end frameworks popularity (React, Vue, Angular and Svelte)
@SaiAshish9
SaiAshish9 / 1.js
Created May 6, 2023 08:11 — forked from branneman/1.js
JavaScript examples: No coupling, Loose coupling, Tight coupling
{
// Tight coupling from A to B => A needs B to be defined, callable and adhere to an interface
// No coupling from B to A => B does not need A in any way (pure fn)
function a() {
b()
}
function b() {}
}
{
1. NextGreaterElement
import java.util.*;
import java.io.*;
public class Main {
private static PrintStream ps = System.out;
private static int[] nextGreaterElement(int[] nums) {
// unique paths unique paths 2 climbing stairs Minimum Path Sum decode ways
1. Two Sum
if (map[diff]) return [+map[diff], +i]
else map[nums[i]] = i
2. Add Two Numbers
let result = curr
@SaiAshish9
SaiAshish9 / practice
Last active September 20, 2022 13:19
// // graphs
// // bfs dfs allPathsDfs tsp tspHelper primeFactors graphColoring
// https://www.techiedelight.com/replace-each-element-corresponding-rank-array
// var LinketList = function (data, next) {
// (this.data = typeof data !== undefined ? data : null),
// (this.next = next ?? null);
// };
// function reverse(list) {
// let curr = list;
// Q1
// Russian Doll Envelope
function maxEnvelopes(envelopes){
var n = envelopes.length;
if (n == 0)
return n;
envelopes.sort();
var dp = Array(n).fill(1);
for (var i = 1; i < n; ++i) {
for (var j = 0; j < i; ++j) {
#!/bin/bash
echo 'Installing tomcat lib'
sudo apt update
sudo apt install default-jre
java --version
cd /opt
wget https://mirrors.estointernet.in/apache/tomcat/tomcat-8/v8.5.64/bin/apache-tomcat-8.5.64.tar.gz
tar -zvxf apache-tomcat-8.5.64.tar.gz
cd apache-tomcat-8.5.64/
@SaiAshish9
SaiAshish9 / tomcat-installation.sh
Last active March 22, 2021 12:15
tomcat-installation
#!/bin/bash
echo 'Installing tomcat lib'
sudo apt update
sudo apt install default-jre
java --version
cd /opt
wget https://mirrors.estointernet.in/apache/tomcat/tomcat-8/v8.5.61/bin/apache-tomcat-8.5.61.tar.gz
tar -zvxf apache-tomcat-8.5.61.tar.gz
cd apache-tomcat-8.5.61/