Skip to content

Instantly share code, notes, and snippets.

@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active January 13, 2025 05:38
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
#include <GL/glut.h>
#include <iostream>
#include <memory>
#include <unordered_map>
#include <vector>
// Base class for 3D shapes
class Shape3D {
protected:
int id;

Ruby: The future of frozen string literals

What is a literal?

In programming languages, literals are textual representations of values in the source code. This is a syntactical concept.

Some examples:

7 # integer literal
#include <GL/glut.h>
#include <iostream>
#include <memory>
// Abstract base class for 3D shapes
class Shape3D {
public:
virtual void render() const = 0; // Pure virtual method for rendering
virtual ~Shape3D() = default;
};
@spalladino
spalladino / mysql-docker.sh
Created December 22, 2015 13:47
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
#include <GL/glut.h>
#include <iostream>
#include <memory>
#include <unordered_map>
// Abstract base class for 3D shapes
class Shape3D {
protected:
int id; // Unique identity
float position[3]; // x, y, z position
@santaklouse
santaklouse / CrossOver.sh
Last active January 13, 2025 05:31
unlimited CrossOver trial (MacOS)
#!/usr/bin/env bash
# checck if pidof exists
PIDOF="$(which pidof)"
# and if not - install it
(test "${PIDOF}" && test -f "${PIDOF}") || brew install pidof
# find app in default paths
CO_PWD=~/Applications/CrossOver.app/Contents/MacOS
test -d "${CO_PWD}" || CO_PWD=/Applications/CrossOver.app/Contents/MacOS

Cody AI Prompts

Generate Requirements for an Idea: I have an idea for a new software project. If I haven't already given my idea to you, ask me to provide it before proceeding.

Using my project idea, generate a set of core requirements. Keep the requirements simple and focused on the aspects that are most likely to impact the architecture.

Present the list of requirements in an organized manner. Categorize as appropriate. Give each core feature a unique number I can use later to refer back to that feature.

Give me this in markdown format and offer to let me insert your generated content into a new file.

An guide how to activate Windows 11 Pro for free

Why?

Because you will get some more features like an Bitlocker and host your device as an External Desktop which can be accessed through the internet

Am i also able to switch from any other edition to Pro?

The answer is yes! You can switch from almost any edition to Pro completely for free!

Note for users with unactivated Pro edition

People which already have Pro, but not activated, can skip to this step.

Getting started

What you first need to do is open CMD (Command Prompt) as Administrator using this keyboard key:

@yifanzz
yifanzz / code-editor-rules.md
Created December 17, 2024 00:01
EP12 - The One File to Rule Them All

[Project Name]

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.

Project Context

[Brief description ]

  • [more description]
  • [more description]
  • [more description]