Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.
[Brief description ]
- [more description]
- [more description]
- [more description]
| --- | |
| # ----------------------------------------------------------------------------- | |
| # qr0001 – /Precision/UseDefiniteArticles | |
| # | |
| qr0001_precision_usedefinitearticles: | |
| definition: > | |
| Use definite article "the" rather than the | |
| indefinite article "a." |
| # extra comments for you arthur! but FYI you need 'pup' or 'htmlq' you can get with `brew install htmlq` | |
| function sunoScrape() { | |
| # interate over every url passed in as an argument. Each url will be in the variable '$u' | |
| for u in $@; do | |
| # get the title of the song by extracting the '<meta property="og:title" content="...">' tag from the html of the page | |
| local TITLE=""; | |
| [[ $+commands[pup] ]] && { | |
| TITLE="$(curl -sS "$u" | pup 'meta[property="og:title"] attr{content}' | perl -MHTML::Entities -pe 'decode_entities($_)' )"; | |
| } || { [[ $+commands[htmlq] ]] && { | |
| TITLE="$(curl -sS "$u" | htmlq -a content "meta[property=\"og:title\"]" )"; |
| # A one liner to leverage the GPU on a mac to transcribe audio files | |
| # Inspired by https://simonwillison.net/2024/Aug/13/mlx-whisper/ | |
| llm_transcribe_recording () { | |
| local file_path="$1" | |
| python3 -c " | |
| import mlx_whisper | |
| result = mlx_whisper.transcribe('$file_path', path_or_hf_repo='mlx-community/distil-whisper-large-v3') | |
| print(result['text']) | |
| " | |
| } |
| #!/bin/bash | |
| banner() { | |
| echo "sunosh - a suno custom cli with gpt integration for fast song generation" | |
| echo "by Colin J.Brigato <[email protected]>" | |
| echo '-' | |
| } | |
| ## CONF | |
| #set it from https://clerk.suno.com/v1/client?_clerk_js_version=4.73.2 request in developer tools |
| export default function ProgressBar({ currentLevel }: { currentLevel: number }) { | |
| return ( | |
| <div className="flex justify-between items-center font-mono relative"> | |
| {Array.from({ length: 9 }, (_, i) => i).map((index) => ( | |
| <div | |
| key={index} | |
| className={`absolute h-1 z-0 ${index < currentLevel - 1 ? "bg-white" : "bg-zinc-800"}`} | |
| style={{ left: `calc(${(index / 10) * 100}% + 4%)`, width: `11%` }} | |
| ></div> | |
| ))} |
| // Adapted from https://raddle.me/f/Privacy/3722/how-to-circumvent-cloudflare-s-email-protected-thing-without with the help of chatGPT | |
| function fixObfuscatedEmails() { | |
| const elements = document.getElementsByClassName('__cf_email__'); | |
| for (let i = 0; i < elements.length; i++) { | |
| const element = elements[i]; | |
| const obfuscatedEmail = element.getAttribute('data-cfemail'); | |
| if (obfuscatedEmail) { | |
| const decodedEmail = decrypt(obfuscatedEmail); | |
| element.setAttribute('href', 'mailto:' + decodedEmail); | |
| element.innerHTML = decodedEmail; |
So you want to write a sync system for a web app with offline and realtime support? Good luck. You might find the following resources useful.
Database in a browser, a spec (Stepan Parunashvili)
What problem are we trying to solve with a sync system?
The web of tomorrow (Nikita Prokopov)
| tap "alienator88/cask" | |
| tap "anhoder/go-musicfox" | |
| tap "appleboy/tap" | |
| tap "buo/cask-upgrade" | |
| tap "charmbracelet/tap" | |
| tap "context-labs/mactop", "https://github.com/context-labs/mactop" | |
| tap "dehydratedpotato/tap" | |
| tap "dracula/install" | |
| tap "graelo/tap" | |
| tap "homebrew/bundle" |