Skip to content

Instantly share code, notes, and snippets.

@theRichu
theRichu / default.md
Created June 23, 2025 12:44 — 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.
@theRichu
theRichu / complexObj.inspect.depth.js
Created June 7, 2021 05:19
방법 2-1 util.inspect, depth:null
const { inspect } = require('util')
console.log(inspect(deepObj, { depth: null }))
/*
{
depth1: {
depth2: {
depth3: {
depth4Arr: [ { depth5: { hello: 'world' } } ]
}
@theRichu
theRichu / complexObj.inspect.js
Created June 7, 2021 05:16
방법2: util.inspect 사용
const { inspect } = require('util')
console.log(inspect(deepObj))
/*
{
depth1: { depth2: { depth3: [Object] }, circularReference: [Circular] },
undefinedValue: undefined,
nullValue: null,
NaNValue: NaN,
@theRichu
theRichu / complexObjct.stringify.js
Created June 7, 2021 05:13
방법 1: JSON.stringify
// 방법 1: JSON.stringify
console.log(JSON.stringify(deepObj))
/*
/Users/taeyeongkim/poomgo_backend/snippets/object.presentation.js:36
console.log(JSON.stringify(deepObj))
^
TypeError: Converting circular structure to JSON
--> starting at object with constructor 'Object'
@theRichu
theRichu / complexObj.js
Created June 7, 2021 05:09
복잡한 오브젝트
const circularObj = {
text: 'something'
}
circularObj.circularReference = circularObj
const deepObj = {
depth1: {
depth2: {
depth3: {
depth4Arr: [
@theRichu
theRichu / circularLog.js
Last active June 7, 2021 04:24
inspect 유틸을 이용한 깊은 오브젝트 로그
const circularObj = {
text: 'something'
}
circularObj.circularReference = circularObj
const deepObj = {
depth1: {
depth2: {
depth3: {
depth4Arr: [
@theRichu
theRichu / deepObjLog.js
Last active June 7, 2021 03:18
단계가 깊은 오브젝트 로그
const deepObj = {
depth1: {
depth2: {
depth3: {
depth4Arr: [
{
depth5: {
hello: 'world'
}
}
@theRichu
theRichu / deepObjLog.js
Last active June 7, 2021 03:10
단계가 깊은 오브젝트 로그
const deepObj = {
depth1: {
depth2: {
depth3: {
depth4Arr: [
{
depth5: {
hello: 'world'
}
}
@theRichu
theRichu / normalLog
Created June 7, 2021 03:04
가장 흔히 쓰는 콘솔 로그
console.log(obj)
@theRichu
theRichu / team.js
Created April 28, 2021 06:14
회식팀
const a = ['사람1', '사람2', '사람3', '사람4', '사람5', '사람6', '사람7', '사람8', '사람9']
const { random, times, compact } = require('lodash')
function pickup (arr) {
if (!arr.length) {
return
}
const index = random(1, arr.length)
const picked = arr[index - 1]