Skip to content

Instantly share code, notes, and snippets.

View taishikato's full-sized avatar

Taishi taishikato

View GitHub Profile
@taishikato
taishikato / 1.txt
Created May 10, 2025 20:42 — forked from GuiBibeau/1.txt
Vibe architecting prompts
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
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 {
@taishikato
taishikato / simple-footer-with-Mantine.tsx
Created December 4, 2022 23:32
A simple footer with Next.js and Mantine
@taishikato
taishikato / using_cors_on_cloud_functions.ts
Last active August 16, 2020 18:47
How to use CORS with TypeScript on Firebase Cloud Functions 🔥
import * as cors from 'cors';
const corsHandler = cors({origin: true});
export const createPaymentIntent = functions.https.onRequest((req, res) => {
corsHandler(req, res, () => {
res.send('Success');
});
});
const questionData = await db
.collection('questions')
.where('created', '<', lastQuestion.created)
.orderBy('created', 'desc')
.limit(10)
.get();
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
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
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
@taishikato
taishikato / download-file.js
Created January 3, 2020 00:51 — forked from javilobo8/download-file.js
Download files with AJAX (axios)
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);
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)'"