This file contains hidden or 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
I want you to refine this brainstorming document into a prompt for a deep research system that will be tasked with writing a technical spike | |
research document on a software engineering project. The goal of this research is to help guide future agentic coding systems into | |
having a good understanding of the technical landscape around the software the user wants to create. | |
<context> | |
Deep research is a category of product where large language models capable of test time compute are paired with capacities to: | |
- search the web | |
- browse documentatin | |
- read research paper | |
- further refine their research based on their finding |
This file contains hidden or 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
import { | |
Message, | |
StreamingTextResponse, | |
Message as VercelChatMessage, | |
} from "ai"; | |
import { SupabaseVectorStore } from "langchain/vectorstores/supabase"; | |
import { OpenAIEmbeddings } from "langchain/embeddings/openai"; | |
import { supabaseAdmin } from "../../../../utils/supabaseAdminClient"; | |
import { PromptTemplate } from "langchain/prompts"; | |
import { |
This file contains hidden or 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
import * as cors from 'cors'; | |
const corsHandler = cors({origin: true}); | |
export const createPaymentIntent = functions.https.onRequest((req, res) => { | |
corsHandler(req, res, () => { | |
res.send('Success'); | |
}); | |
}); |
This file contains hidden or 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
const questionData = await db | |
.collection('questions') | |
.where('created', '<', lastQuestion.created) | |
.orderBy('created', 'desc') | |
.limit(10) | |
.get(); |
This file contains hidden or 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
const items = [5, 3, 7, 6, 2, 9]; | |
const swap = (items, leftIndex, rightIndex) => { | |
const temp = items[leftIndex]; | |
items[leftIndex] = items[rightIndex]; | |
items[rightIndex] = temp; | |
}; | |
const partition = (items, left, right) => { | |
const pivot = items[Math.floor((right + left) / 2)]; //middle element | |
let i = left; //left pointer | |
let j = right; //right pointer |
This file contains hidden or 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
const insertionSort = (nums) => { | |
const arr = nums.toString().split(''); | |
for (let i = 1; i < arr.length; i++) { | |
let j = i - 1 | |
let tmp = arr[i] | |
while (j >= 0 && arr[j] > tmp) { | |
arr[j + 1] = arr[j] | |
j-- | |
} | |
arr[j + 1] = tmp |
This file contains hidden or 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
import { withRouter } from 'react-router' | |
import { RouteComponentProps } from 'react-router-dom' | |
const Navbar: React.FC<RouteComponentProps> = props => { | |
React.useEffect(() => { | |
handleDropDown() | |
handleHumburger() | |
}, [props.location]) | |
// Your code |
This file contains hidden or 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
axios({ | |
url: 'http://localhost:5000/static/example.pdf', | |
method: 'GET', | |
responseType: 'blob', // important | |
}).then((response) => { | |
const url = window.URL.createObjectURL(new Blob([response.data])); | |
const link = document.createElement('a'); | |
link.href = url; | |
link.setAttribute('download', 'file.pdf'); | |
document.body.appendChild(link); |
This file contains hidden or 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
alias gga="git log --graph --all --abbrev-commit --date=relative --pretty=format:'%C(red)%h %C(reset)-%C(yellow)%d%Creset %s %Cgreen(%cr) %C(blue)[%an] %C(bold blue)'" |
NewerOlder