Skip to content

Instantly share code, notes, and snippets.

@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active January 8, 2025 01:01
"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
@alexedwards
alexedwards / gist:dc3145c8e2e6d2fd6cd9
Last active January 8, 2025 00:57
Example of working with Go's database/sql and NULL fields
CREATE TABLE books (
isbn char(14) NOT NULL,
title varchar(255),
author varchar(255),
price decimal(5,2)
);
INSERT INTO books (isbn, title, author, price) VALUES
('978-1503261969', 'Emma', 'Jayne Austen', 9.44),
('978-1514274873', 'Journal of a Soldier', NULL, 5.49),
@VVispy
VVispy / LG TV Homebrew Guide.md
Last active January 8, 2025 00:53
LG TV Homebrew Guide

How to Install Third Party Apps on LG Brand TVs

  • This is done using webOS dev manager + LG developer mode auto-renewal. Completely for free.
  • Homebrew allows users to install select extra apps that are not on the LG content store to their LG TV such as Ad-free YouTube (Sponsorblock included) and Kodi.
  • It's known to work on C and G series LG TVs. May work on others.
  • This will not void your warranty and will not break anything if done correctly.
  • This guide is pretty easy to follow, so don't be overwhelmed

Guide

Pair TV to Computer and Install Homebrew

@ironlungx
ironlungx / nvim-pio.md
Last active January 8, 2025 00:51
PlatformIO with Neovim

Extensions

Following are the extensions required for neovim:

I use lazy.nvim so, just add the following to your plugins table, or create a new file in lua/plugins/lsp.lua

return {
	{
@tylerneylon
tylerneylon / learn.lua
Last active January 8, 2025 00:51
Learn Lua quickly with this short yet comprehensive and friendly script. It's written as both an introduction and a quick reference. It's also a valid Lua script so you can verify that the code does what it says, and learn more by modifying and running this script in your Lua interpreter.
-- Two dashes start a one-line comment.
--[[
Adding two ['s and ]'s makes it a
multi-line comment.
--]]
----------------------------------------------------
-- 1. Variables and flow control.
----------------------------------------------------
@ArieLeo
ArieLeo / Usage.cs
Created November 7, 2021 09:38 — forked from Refsa/Usage.cs
DrawMeshInstancedIndirect with ShaderGraph and URP
using System.Collections.Generic;
using System.Runtime.InteropServices;
using UnityEngine;
class Render : MonoBehaviour
{
struct DrawData
{
public Vector3 Pos;
public Quaternion Rot;