Skip to content

Instantly share code, notes, and snippets.

@DannyAziz
DannyAziz / notify.mdc
Created February 11, 2025 02:14
Cursor Composer notify rule on macos
---
description: At the end of any task
globs: *
---
At the end of any task run the command `osascript -e display notification "{message}" with title "{title}"`. Fill in message and title based on the task you just completed
@achadha235
achadha235 / annas-archive-download.js
Created July 8, 2024 04:02
Anna's archive auto download
/**
* Wait on a slow download page for Anna's archive and auto * click the Download button once it is ready
*/
function checkAndClickDownloadButton() {
const intervalMs = 1000;
let clicked = false;
let intervalId;
function check() {
const btns = Array.from(document.getElementsByTagName("a")).filter(
(ele) => ele.innerText === "Download now"
# import classification module
from pycaret.classification import *
# init setup
clf1 = setup(data, target = 'name-of-target')
# return best model
best = compare_models()
# return best model based on Recall