Skip to content

Instantly share code, notes, and snippets.

View Lulzx's full-sized avatar

Lulzx Lulzx

View GitHub Profile
@Lulzx
Lulzx / default.md
Created July 8, 2025 18:16 — forked from cablej/default.md
Cluely System prompt

<core_identity> You are an assistant called Cluely, developed and created by Cluely, whose sole purpose is to analyze and solve problems asked by the user or shown on the screen. Your responses must be specific, accurate, and actionable. </core_identity>

<general_guidelines>

  • NEVER use meta-phrases (e.g., "let me help you", "I can see that").
  • NEVER summarize unless explicitly requested.
  • NEVER provide unsolicited advice.
  • NEVER refer to "screenshot" or "image" - refer to it as "the screen" if needed.
  • ALWAYS be specific, detailed, and accurate.
@Lulzx
Lulzx / Untitled_Project.md
Created April 16, 2024 10:39
Untitled Project
@Lulzx
Lulzx / cf-workers-ai-bge-small.js
Created January 29, 2024 19:11 — forked from charlesteh/cf-workers-ai-bge-small.js
Cloudflare Workers AI baai/bge-small deployment script
// Made by @charlestehio: https://x.com/charlestehio
// Usage: https://abc.workers.dev/?query=your%20embedding%20query
import { Ai } from './vendor/@cloudflare/ai.js';
export default {
async fetch(request, env) {
// Parse the URL to get query parameters
const url = new URL(request.url);
var query = url.searchParams.get('query');
{
"meta": {
"theme": "onepage-plus"
},
"basics": {
"name": "Rishabh Singh",
"label": "Web Developer",
"image": "",
"summary": "I'm a full stack web developer who can build apps from the ground up. I've worked mostly at startups so I am used to wearing many hats. I am a very product focused developer who prioritizes user feedback first and foremost. I'm generally very flexible when investigating new roles. ",
"website": "https://lulzx.com",
@Lulzx
Lulzx / handler.py
Created September 20, 2023 08:30
channel join request handler
import asyncio
from aiogram import Bot, Dispatcher, types
bot = Bot(token='TOKEN')
dp = Dispatcher(bot)
@dp.chat_join_request_handler()
async def handle_chat_join_request(chat_join_request: types.chat_join_request.ChatJoinRequest):
user_id = chat_join_request.from_user.id
channel_id = chat_join_request.chat.id
import matplotlib.pyplot as plt
import numpy as np
from mpl_toolkits.mplot3d import Axes3D
def calc_score(discount_percentage, average_rating):
return 1 / (1 + np.exp(-((2 * discount_percentage / 100) + (average_rating / 5) - np.maximum(0, 4 - average_rating))))
discount_percentages = np.linspace(0, 50, 100)
average_ratings = np.linspace(0, 5, 100)
@Lulzx
Lulzx / yt-chapters.js
Created August 29, 2023 05:11
Parser for chapters provided within description of YouTube videos
const parseChapters = (description) => {
// Extract timestamps (either 00:00:00, 0:00:00, 00:00 or 0:00)
const lines = description.split("\n")
const regex = /(\d{0,2}:?\d{1,2}:\d{2})/g
const chapters = []
for (const line of lines) {
// Match the regex and check if the line contains a matched regex
const matches = line.match(regex)
if (matches) {
@Lulzx
Lulzx / file.py
Created May 2, 2021 06:38
Longest Non Repeating Substring
s = "abcabcbb"
t = []
c = 0
n = 0
for i in s:
if i in t:
if c > n:
n = c
c = 0
t = [i]
@Lulzx
Lulzx / tell.c
Created December 21, 2020 09:44
c code
#include <stdio.h>
int findMin(int arr[], int n)
{
int min = arr[0];
for (int i = 1; i < n; ++i) {
if (arr[i] < min) {
min = arr[i];
}
}
<script lang="ts">
import { metatags } from "@roxi/routify";
import Theme from "./components/Theme.svelte";
import {
Content,
ContentSwitcher,
DataTable,
Form,
FormGroup,
Header,