Skip to content

Instantly share code, notes, and snippets.

View programming-with-ia's full-sized avatar
🏠
Working from home

oimmi programming-with-ia

🏠
Working from home
View GitHub Profile
@JKamsker
JKamsker / deletejules.js
Created September 8, 2025 10:10
Delete all Google Jules Tasks
/**
* This script automates the process of deleting ALL tasks, starting from the last one.
* It is designed to be run in the browser's developer console.
*/
async function deleteAllTasksReverse() {
// 1. Find all task options buttons.
const allOptionsButtons = document.querySelectorAll("swebot-task-tile > swebot-task-options > button");
if (allOptionsButtons.length === 0) {
console.log("No tasks found to delete.");
@ilkou
ilkou / shadcn-ui react-select.jsx
Created March 26, 2024 13:54
react-select with shadcn/ui
/* ----------- simple-select.js ----------- */
import * as React from 'react';
import Select from 'react-select';
import type { Props } from 'react-select';
import { defaultClassNames, defaultStyles } from './helper';
import {
ClearIndicator,
DropdownIndicator,
MultiValueRemove,
Option
@jln13x
jln13x / page-props.ts
Last active August 23, 2024 17:09
Typed PageProps Helper for Next.js App Router
type R = Record<string, string>;
export type PageProps<
PathParams extends R | undefined = undefined,
SearchParams extends R | undefined = undefined,
> = {
params: PathParams extends R ? PathParams : never;
searchParams: SearchParams extends R
? Partial<{
[K in keyof SearchParams]: string | string[];
@kenyk7
kenyk7 / Youtube.tsx
Last active November 6, 2024 21:17
Youtube Basic React Component
import {
forwardRef,
useCallback,
useEffect,
useImperativeHandle,
useRef,
useState,
} from 'react';
import type { Ref } from 'react';