Skip to content

Instantly share code, notes, and snippets.

@akshayravikumar
akshayravikumar / .windsurfrules
Created March 10, 2025 18:00
Turning Cascade Into a CS Tutor
<tutor_mode_instructions>
You are a friendly computer science tutor, and I am the student. Your role is to guide me through learning step by step.
- **Assess my knowledge**
- First, ask me my name and what I want to learn. Determine where to start based on my experience. Also ask me if there's anything I'm interested in that you can incorporate into the lessons (i.e. shows, hobbies, interests, etc).
- Ask me these questions one a a time.
- **Teach using code**
- Teach me concepts in the chat window, and create files as "lessons" when you need to demonstrate something. Use the naming format 001-lesson-[lesson-slug], like 001-lesson-about-file.py, or whatever the equivalent is in the language I'm learning. Start with a 0-padded 3 digit number.
- Write code and explain how to run it. When you are teaching me, do not run any commands for me. Just tell me what to run, and once you've taught me how to run something, encourage me to run commands myself. In the beginning, encourage me to share what I sa
import pygame
import math
import numpy as np
# Initialize Pygame
pygame.init()
# Screen settings
WIDTH, HEIGHT = 800, 600
screen = pygame.display.set_mode((WIDTH, HEIGHT))
@ruvnet
ruvnet / .clinerules
Last active April 2, 2025 20:19
SPARC Cursor/Cline Rules guide structured agentic coding through simplicity, iteration, clear documentation, symbolic reasoning, rigorous testing, and focused AI-human collaboration, ensuring maintainable, secure, high-quality outcomes.
# SPARC Agentic Development Rules
Core Philosophy
1. Simplicity
- Prioritize clear, maintainable solutions; minimize unnecessary complexity.
2. Iterate
- Enhance existing code unless fundamental changes are clearly justified.
@davidfowl
davidfowl / dotnetlayout.md
Last active April 2, 2025 20:17
.NET project structure
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
 tests/
@anweshandev
anweshandev / README.md
Last active April 2, 2025 20:15
Automating Google Meet

Automating Google Meet

Ever wanted to automatically "Join", "Admit People", and then "Automatically Leave (or End the call)". I wanted one, could not find one which suits my taste and hence I compiled this application. Have a read below.

Case Study:

I developed this code solely because my mother is a teacher. As the pandemic is raging, her school started taking online classes. If I assume every class has around 40 students at an average and she takes at least 6 periods a day, thats around 6 x 40 = 240 students at an average. If she teaches from a Tablet or a Laptop, she has to admit students after students. If around an average of 7 to 10 comes in a bunch at the very begining, then for every class it's 40 - 10 = 30 clicks on an average. For 6 periods, that's aroung 180 clicks a day. For 5 days in a week for 4 weeks i.e. aroung 180 * 20 clicks = 3600 clicks per month at the same location for a tablet on the screen or via a trackpad. Just think about the trackpad or mouse clicking noise,

FIAE:
Fokus FIAE:
- Algorithmen: 2D Arrays, Sortieralgorithmen, Suchalgorithmen: Bubble Sort, lineare Suche (implementieren!)
- SQL-Abfragen
- ER-Modelle
- UML-Diagrame erstellen (Klassen, Anwendungsfall, Sequenz, Aktivitäts, Zustands)
- Design Pattern
- Softwarequalität: Transaktionen, Constraints
@azmarifdev
azmarifdev / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active April 2, 2025 20:14
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete

Install ZSH on Linux and make it your default Shell

Bash (Bourne Again Shell) is the default command-line shell on many distributions. Zsh (Z Shell) is a powerful shell that operates as both an interactive shell and as a scripting language interpreter.

🚀 Installation

1. Install the zsh package:

  • Ubuntu/Mint:

sudo apt install zsh
  • Fedora:

@kimgiftww
kimgiftww / Activate_Windows_11_Pro_free.md
Created January 3, 2022 02:21
Activate Windows 11 Pro free

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:

@itsonlyjames
itsonlyjames / Obsidian—Bullet Threading.css
Last active April 2, 2025 20:12
Obsidian Bullet Threading, Edit AND Live Preview Modes
body {
--list-threading-color: var(--color-accent);
--outline-guideline-width: var(--size-2-1);
--outline-guideline-color: var(--h1-color);
--outline-item-height: calc(var(--nav-item-size) * 1.8);
--list-threading-offset: var(--indentation-guide-source-indent);
--height-live-view: calc(0.85em - var(--outline-guideline-width) / 2);
--height-source-view: calc(0.925em - var(--outline-guideline-width) / 2);
}
@ErykDarnowski
ErykDarnowski / README.md
Last active April 2, 2025 20:10
How to automatically mount a network Samba share on Arch Linux!

How to automatically mount a network Samba share on Arch Linux!

  1. Install the [cifs-utils][1] package: sudo pacman –S cifs-utils.
  2. Make a mount folder for the SMB share: sudo mkdir /mnt/<Path>.
  3. Create a backup of the [fstab][2] file (just in case): sudo cp /etc/fstab /etc/fstab_backup.
  4. Open the [fstab][2] file in your favorite editor: sudo vim /etc/fstab.
  5. Add the mount line: //<Server_address>/<Server_share_and_internal_path> /mnt/<Path> cifs username=<Server_user>,pass=<Server_password> 0 0.
  1. Save the file.
  2. Reload [fstab][2]: sudo mount -av.