Skip to content

Instantly share code, notes, and snippets.

View wjw12's full-sized avatar

JW wjw12

View GitHub Profile
@wjw12
wjw12 / default.md
Created June 22, 2025 13:20 — 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.
@wjw12
wjw12 / fp64_to_float.js
Last active October 21, 2022 03:21
fp64_to_float
// input cannot be larger the 2^31
// this should allow at least 6 digits precision in the fractional part
// https://stackoverflow.com/questions/45929493/node-js-maximum-safe-floating-point-number
function fp64_to_float(a) {
// avoid large number
let mask = BigInt("0xffffffff000000000000000000000000")
if ((a & mask) != 0n) {
throw new Error("too large")
}