Skip to content

Instantly share code, notes, and snippets.

@mistersandhu
mistersandhu / variables.js
Created March 3, 2025 01:52
All the Javascript Practice for beginners.
const username = 'james_bonds'
const userId = 434343532
let name = 'James'
let age = 35
let city = 'New York'
@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active March 3, 2025 02:02
"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
@shamansir
shamansir / _.js
Last active March 3, 2025 02:02
Parse and convert any SVG path to the list of commands with JavaScript + Regular Expressions
// svgPathToCommands('M10,10 l 5,7 C-5,7.2,.3-16,24,10 z');
//
// produces:
//
// [ { marker: "M", values: [ 10, 10 ] },
// { marker: "l", values: [ 5, 7 ] },
// { marker: "C", values: [ -5, 7.2, 0.3, -16, 24, 10 ] },
// { marker: "z", values: [ ] } ]
//
// commandsToSvgPath(svgPathToCommands('M10,10 l 5,7 C-5,7.2,.3-16,24,10 z'))
@matze19999
matze19999 / gist:9118f667510291e1e0ea28e74ec03245
Last active March 3, 2025 02:00
esp32-s3-touch-lcd-18.5
esphome:
name: esp32-s3-touch-lcd-185
friendly_name: esp32-s3-touch-lcd-1.85
on_boot:
priority: 600
then:
- lambda: |-
uint8_t config[2];
// 🔹 Gyro + Accel aus Standby holen
@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]
@revant
revant / NOTES.md
Last active March 3, 2025 01:56
Advance frappe benches with Dokploy
{
"version": "0.1.0",
"name": "pump",
"instructions": [
{
"name": "initialize",
"docs": [
"Creates the global state."
],
"accounts": [
@canyon289
canyon289 / README.md
Last active March 3, 2025 01:49
Building AI Webapp

🚀 Getting Started

To run this workshop locally, you'll need to set up Ollama and a Python environment using UV.

1. Setting Up Ollama (Most Critical Step)

We’ll be running Gemma 2B locally with Ollama, so you need to set this up first. This step will require a large download (~10GB total) and some hardware considerations.

Install Ollama

Download and install Ollama from https://ollama.com/.

@kenrmayfield
kenrmayfield / proxmox-lxc-cifs-share.sh
Last active March 3, 2025 01:46 — forked from NorkzYT/proxmox-lxc-cifs-share.sh
Proxmox CIFS Share Bind Mount Wizard Script
#!/bin/bash
# This script is designed to assist in mounting CIFS/SMB shares to a Proxmox LXC container.
# It automates the process of creating a mount point on the Proxmox VE (PVE) host, adding the
# CIFS share to the /etc/fstab for persistent mounts, and configuring the LXC container to
# recognize the share. This script is intended for use on a Proxmox Virtual Environment and
# requires an LXC container to be specified that will access the mounted share.
#
# Prerequisites:
# - Proxmox Virtual Environment setup.
@kiding
kiding / NoScrollOnInputFocusiOSSafari.html
Last active March 3, 2025 01:46
Preventing iOS Safari scrolling when focusing on input elements
<!--
When an input element gets focused, iOS Safari tries to put it in the center by scrolling (and zooming.)
Zooming can be easily disabled using a meta tag, but the scrolling hasn't been quite easy.
The main quirk (I think) is that iOS Safari changes viewport when scrolling; i.e., toolbars shrink.
Since the viewport _should_ change, it thinks the input _will_ move, so it _should_ scroll, always.
Even times when it doesn't need to scroll—the input is fixed, all we need is the keyboard—
the window always scrolls _up and down_ resulting in some janky animation.
However, iOS Safari doesn't scroll when the input **has opacity of 0 or is completely clipped.**