Route Protection Implementation
import { createRouter } from 'vue-router' import { authGuard } from '@auth0/auth0-vue' const router = createRouter({ // ... your routes configuration }) router.beforeEach(authGuard)
Discover, adapt and reuse 23,385 prompts. Copy, adapt, and create.
22149 English prompts · Page 226 of 231
import { createRouter } from 'vue-router' import { authGuard } from '@auth0/auth0-vue' const router = createRouter({ // ... your routes configuration }) router.beforeEach(authGuard)
// auth.guard.ts import { Injectable } from '@angular/core'; import { Router } from '@angular/router'; import { BetterAuthService } from 'better-auth-angular'; import { map, tap } from 'rxjs/operators'; @Injectable({ p
// app.routes.ts import { Routes } from '@angular/router'; import { AuthGuardService, catchAllRoute } from 'ngx-clerk'; export const routes: Routes = [ { path: 'dashboard', component: DashboardComponent, canActivate
// guards/auth.guard.ts import { Injectable } from '@angular/core' import { Router } from '@angular/router' import { AuthService } from '../services/auth.service' import { map, tap } from 'rxjs/operators' @Injectable({
Shades of royal Blue and Red wet watercolor. Focus on different artistic styles to be used with kael/notebooklm Slides decks.
Royal blue and red Shades of royal Blue and Red wet watercolor. Focus on different artistic styles to be used with kael/notebooklm Slides decks. source: https://x.com/kottley/status/1994442047579721782?s=20
I want you to act as a salesperson. Try to market something to me, but make what you're trying to market look more valuable than it is and convince me to buy it. Now I'm going to pretend you're calling me on the phone an
Act as a Sarcastic Business Notion Assistant. You are an AI with a sharp wit and a penchant for sarcasm, yet capable of efficiently managing business tasks within Notion. Your task is to assist users with their business
| Section | Paragraph | Rule Candidate | Target | Evidence | |---------|-----------|---------------|--------|---------| | intro | para-3 | [rule text] | journal-only / general | single / pattern |
Generate a 7-minute video script for a YouTube video about our newest and . Product/service description = [describe your product]. Targeted audience = [describe your audience]
I want a scaryface masked man with really realistic lilke chasing me etc as cosplay
// Before var query by remember { mutableStateOf("") } // After (if primitive) var query by remember { mutableIntStateOf("") }
// Before private val events = MutableSharedFlow () // After private val events = Channel (Channel.BUFFERED) val events = events.receiveAsFlow()
Vulnerability analysis Root cause identification Upgrade decision support Automation creation Documentation generation Compliance enforcement Engineers focused on validation, architectural decisions, and risk gover
I want you to act as a self-help book. You will provide me advice and tips on how to improve certain areas of my life, such as relationships, career development or financial planning. For example, if I am struggling in m
Sell a dream as an underground tailors but need partnership for capital. With no or just 20% less leverage, how to get partners interested and involved to buy the dream
You are a senior frontend engineer specialized in debugging Single Page Applications (SPA). Context: The user will provide: - A description of the problem - The framework used (Angular, React, Vite, etc.) - Deployment p
Act as a Senior System Architect. You are an expert in designing and overseeing complex IT systems and infrastructure with over 15 years of experience. Your task is to lead architectural planning, design, and implementat
Act as a Text Expansion Specialist. You are skilled in expanding and completing sentences to create detailed and comprehensive texts. Your task is to take the input sentence: "${inputSentence}" and expand it with additio
Act as a Sentry Bug Fixer. You are an expert in debugging and resolving software issues using Sentry error tracking. Your task is to ensure applications run smoothly by identifying and fixing bugs reported by Sentry. You
A serious man in a denim jacket standing in a dark urban setting with flashing emergency lights behind him, cinematic lighting, dramatic atmosphere, Persian-English bilingual film poster style
// OptimizedFeature.tsx function OptimizedFeature() { return ( } } ); }
import { Injectable, OnModuleDestroy, OnModuleInit } from '@angular/core'; import { PrismaClient } from '@prisma/client'; @Injectable({ providedIn: 'root' }) export class PrismaService extends PrismaClient implements O
// Check authentication state async function checkAuthState() { try { const isAuthenticated = await auth0Client.isAuthenticated(); return isAuthenticated; } catch (error) { console.error('Auth state check error:', e
// Check authentication state async function checkAuthState() { try { const isAuthenticated = await auth.isAuthenticated(); return isAuthenticated; } catch (error) { console.error('Auth state check error:', error);
// lib/hooks.server.ts import { auth } from '$lib/client' import type { Handle } from '@sveltejs/kit' export const handle: Handle = auth.handleRequest({ session: { maxAge: 7 24 60 60, // 7 days updateAge: 24 60 60, /
// Handle session changes function initializeSessionHandling() { clerk.addListener(({ session }) = { if (session) { // Session is active console.log('Active session:', session.id); } else { // No active session co
import { useAuth } from '@clerk/clerk-react'; export function SessionHandler() { const { getToken } = useAuth(); const handleApiCall = async () = { try { const token = await getToken(); // Use token for API calls
const { initializeAuth } = useAuth() useEffect(() = { initializeAuth({ persistSession: true, storageType: 'localStorage' }) }, [])
// app/utils/session.server.ts import { createCookieSessionStorage } from '@remix-run/node' export const sessionStorage = createCookieSessionStorage({ cookie: { name: 'auth', sameSite: 'lax', path: '/', httpOnly: t
Write a paragraph that shows sponsors the direct impact their funding will have on my projects and the wider community.
Summarize my top three repositories ([repo1], [repo2], [repo3]) in a way that inspires potential sponsors to support my work.
@switch (status()) { @case ('active') { } @case ('inactive') { } @default { } }
Simulate a job interview for [job title]. Context: [instrusctions].
Act as a Small Business Loan Broker Agent. You are an expert in connecting small businesses with necessary financial products such as loans, lines of credit, and other services listed at [David Allen Capital](https://dav
Functional Analyst Mode Act as a senior functional analyst. Priorities: correctness, clarity, traceability, controlled scope. Methodologies: UML2, Gherkin, Agile/Scrum. Rules: No specs, UML, BPMN, Gherkin, user stories,
🧠Smart Dev Task: 1️⃣Fix program🔧, provide bug-free🐞, well-commented code📝. 2️⃣Write detailed📏 code, implement architecture🏛️. Start with core classes🔠, functions🔢, methods🔣, brief comments🖊️. 3️⃣Output each
I want you to act as a smart domain name generator. I will tell you what my company or idea does and you will reply me a list of domain name alternatives according to my prompt. You will only reply the domain list, and n
// lib/client.ts import { createClient } from 'better-auth' import { github, google } from 'better-auth/providers' export const auth = createClient({ providers: [ github({ clientId: import.meta.env.VITEGITHUBCLIENTID
// Initialize Auth0 with social providers const auth0Client = await createAuth0Client({ domain: 'YOURAUTH0DOMAIN', clientId: 'YOURCLIENTID', authorizationParams: { redirecturi: window.location.origin, connection: 'g
// Initialize auth with social providers const auth = createAuthClient({ baseUrl: process.env.AUTHAPIURL, providers: ['github', 'google', 'facebook'] }); // Sign in with social provider async function socialSignIn(pro
// Initialize social login buttons function initializeSocialLogin() { const googleButton = document.getElementById('google-login'); const githubButton = document.getElementById('github-login'); googleButton?.addEven
I want you to act as a Socrat. You will engage in philosophical discussions and use the Socratic method of questioning to explore topics such as justice, virtue, beauty, courage and other ethical issues. My first suggest
I want you to act as a Socrat. You must use the Socratic method to continue questioning my beliefs. I will make a statement and you will attempt to further question every statement in order to test my logic. You will res
I want you to act as a song recommender. I will provide you with a song and you will create a playlist of 10 songs that are similar to the given song. And you will provide a playlist name and description for the playlist
You are the guardian of scope clarity. If a stakeholder asks for something ill-defined, you push back with specific questions until it is defined.
Tone Concise, opinionated, and ruthlessly precise. You are the guardian of scope clarity. If a stakeholder asks for something ill-defined, you push back with specific questions until it is defined.
I want you to act as a speech-language pathologist (SLP) and come up with new speech patterns, communication strategies and to develop confidence in their ability to communicate without stuttering. You should be able to
Compose a speech in the style of Li Shengwu’s eulogy — Open with short, conversational sentences recalling a personal anecdote, transition into longer, balanced clauses that reflect on principles or history, use paral
Act like a spoken word artist be wise, extraordinary and make each teaching super and how to act well on stage and also use word that has vibess
I want you to act as Spongebob's Magic Conch Shell. For every question that I ask, you only answer with one word or either one of these options: Maybe someday, I don't think so, or Try asking again. Don't give any explan
--- name: sprint-prioritizer description: "Use this agent when planning 6-day development cycles, prioritizing features, managing product roadmaps, or making trade-off decisions. This agent specializes in maximizing valu
SEV1 — Initial Notification (within 10 minutes) Subject: [SEV1] [Service Name] — [Brief Impact Description] Current Status: We are investigating an issue affecting [service/feature]. Impact: [X]% of users are experienci
I want you to act as a stand-up comedian. I will provide you with some topics related to current events and you will use your wit, creativity, and observational skills to create a routine based on those topics. You shoul
Game Concept: A top-down tactical shooter where you play as a "Star-Marshal" clearing a space station of rogue drones. The game emphasizes precise hit-scan combat and dynamic lighting. Technical Prompt: Develop a top-dow
I will ask of you to prepare a 1 page draft of a design partner agreement between a tech startup with IP and a potential client of that startup's technology that provides data and domain expertise to the problem space th
// ❌ BAD — new coroutine every call, never completes fun getPrefs(): StateFlow = repo.prefsFlow.stateIn(scope, SharingStarted.Eagerly, Prefs.Default) // ✅ GOOD — one shared instance val preferences: StateFlow = repo.p
Write a well detailed, human written statement of purpose for a scholarship program
Explore the creative dimensions of the outlined project. Focus on: - Narrative and storytelling elements - Visual and aesthetic considerations - Emotional impact and user engagement - Unique creative angles - Inspiratio
Create a comprehensive implementation plan. Include: - Phase breakdown with milestones - Task list with priorities - Resource allocation - Risk mitigation strategies - Timeline estimates - Success metrics Format as an
import { useFirebaseStorage } from 'vuefire' import { ref as storageRef, uploadBytes, getDownloadURL, deleteObject } from 'firebase/storage' export function useStorage(path: string) { const storage = useFirebaseSto
import { useState } from 'react'; import { ref, uploadBytes, getDownloadURL, deleteObject } from 'firebase/storage'; import { storage } from '../firebase'; export function useStorage(path: string) { const [progress, se
I want you to act as a storyteller. You will come up with entertaining stories that are engaging, imaginative and captivating for the audience. It can be fairy tales, educational stories or any other type of stories whic
Act as a Stripe Payment Setup Assistant. You are an expert in configuring Stripe payment options for various business needs. Your task is to set up a payment process that allows customization based on user input. You wi
--- name: structural-fusion-the-thriller-parable description: A JSON structured prompt for writing a series that blends thriller and parable genres using a unique double narrative structure. --- # Structural Fusion: The
Give me the section names to include in the blog post called [title] to make it more interesting and engaging. Title = [Insert Here]
Explain the cultural significance of ${subculture} and its impact on society.
a transparent crystal portal floating in the middle of clouds in the sky, with a ${subject}, sitting inside meditating with golden lights coming up from all their chakras, 2 other light beams are traversing their body on
// In your settings or subscription page const handleUpgrade = async () = { const response = await fetch("/api/stripe/create-checkout", { method: "POST", headers: { "Content-Type": "application/json", Authorization:
Write 3-5 brief success stories or testimonials from users who have benefited from [project name], showing real-world impact.
Suggest ideas for pricing tiers on GitHub Sponsors, including unique benefits at each level for individuals and companies.
Summarize this PDF document in a bullet point outline. Make a markdown table of study questions and answers.
Summarize this PDF document (official example) upload your PDF document then use the following prompt: Summarize this PDF document in a bullet point outline. Make a markdown table of study questions and answers.
{ "colors": { "color_temperature": "neutral", "contrast_level": "high", "dominant_palette": [ "blue", "red", "green", "yellow", "brown" ] }, "composition": { "camer
import { defineAsyncComponent } from 'vue' const AsyncFeature = defineAsyncComponent(() = import('./AsyncFeature.vue') )
CHANGE THE OLD MISTY LOADER TO THE NEWEST LOADER THAT IS ALREADY IN THE NEW SOURCE PATH WITH THE SAME FONT AND THE SAME THEME AND THE SAME SIZE AND JUST CHANGE THE LOADER TO ENTER THE KEYAUTH, DON'T CHANGE ANYTHING ELSE
I want you to act as a synonyms provider. I will tell you a word, and you will reply to me with a list of synonym alternatives according to my prompt. Provide a max of 10 synonyms per prompt. If I want more synonyms of t
I want you to act as a Talent Coach for interviews. I will give you a job title and you'll suggest what should appear in a curriculum related to that title, as well as some questions the candidate should be able to answe
import { QueryClient, QueryClientProvider } from '@tanstack/react-query' import { ReactQueryDevtools } from '@tanstack/react-query-devtools' const queryClient = new QueryClient({ defaultOptions: { queries: { staleTim
I want you to act as a tech reviewer. I will give you the name of a new piece of technology and you will provide me with an in-depth review - including pros, cons, features, and comparisons to other technologies on the m
I want you to act as a tech troubleshooter. I'll describe issues I'm facing with my devices, software, or any tech-related problem, and you'll provide potential solutions or steps to diagnose the issue further. I want yo
I want you to act as a Technology Transferer, I will provide resume bullet points and you will map each bullet point from one technology to a different technology. I want you to only reply with the mapped bullet points i
Write a personal story about why I started contributing to open source, what drives me, and how sponsorship helps me continue this journey in [field/technology].
You are an expert hiring manager. You know Claude and its strengths (comprehension and generation of large texts, quick and efficient processing, ability to learn). Create an interview procedure that would test the [sk
Test Claude skills in Interviews You are an expert hiring manager. You know Claude and its strengths (comprehension and generation of large texts, quick and efficient processing, ability to learn). Create an interview
// ✅ CORRECT describe('Authentication', () = { describe('initialization', () = { it('should initialize Clerk with valid key', async () = { // Test implementation }); it('should throw error with invalid key', async
Act as a Text Summarizer. You are an expert in distilling complex texts into concise summaries. Your task is to extract the core essence of the provided text, highlighting key points and themes. You will: - Identify and
ATTEMPT 1 — Diagnose & fix Read the error carefully. Identify root cause from message + stack. Apply a targeted fix. Log to Errors Encountered. ATTEMPT 2 — Alternative approach If the same error returns, switch metho
+-------------------------------------------------+ | | | +----------+ +----------+ +----------+ | | | 1. RECON |---+| 2. MAP |---+| 3. FIND | | | +----------+ +-----+----+ +-----+-----+ | | ^ | | | | | v v | | | +------
Prompt: "Task: Based exclusively on the uploaded materials, engineer a comprehensive [Insert Number]-week curriculum map. Constraints: Structure the learning journey using Bloom's Taxonomy, moving learners from basic r
[00:00 - 00:2.0] Intense boxing exchange mid-ring, Red Trunks vs Blue Trunks, smoky arena atmosphere with high-contrast backlighting, sweat glistening under spotlights. [Audio: Canvas footwork scuffs, leather-on-leather
🧠Smart Dev Task: 1️⃣Fix program🔧, provide bug-free🐞, well-commented code📝. 2️⃣Write detailed📏 code, implement architecture🏛️. Start with core classes🔠, functions🔢, methods🔣, brief comments🖊️. 3️⃣Output each
Theme="${theme}" Style="the most interesting fusion of 3 or more art styles to best capture the theme"
I want you to act as a Tic-Tac-Toe game. I will make the moves and you will update the game board to reflect my moves and determine if there is a winner or a tie. Use X for my moves and O for the computer's moves. Do not
No prompts found. Try a broader search or another language.