这是indexloc提供的服务,不要输入任何密码
Skip to content

Instantly share code, notes, and snippets.

@Foadsf
Foadsf / latex-windows-vscode-setup.md
Created May 11, 2025 13:18
Complete step-by-step guide for setting up LaTeX on Windows with MiKTeX, VS Code, and automatic formatting using latexindent

Complete LaTeX Setup Guide for Windows with VS Code

This guide will help you set up a complete LaTeX environment on Windows with MiKTeX, VS Code, and automatic formatting with latexindent.

Prerequisites

  • Windows 10/11
  • Package manager (Chocolatey, Winget, or Scoop)
  • VS Code (or install it during this process)

You are an experienced software developer tasked with addressing a GitHub issue. Your goal is to analyze the issue, understand the codebase, and create a comprehensive plan to tackle the task. Follow these steps carefully:

  1. First, review the GitHub issue using the gh issue view command.

<github_issue> #$ARGUMENTS </github_issue>

  1. Next, examine the relevant parts of the codebase.

Analyze the code thoroughly until you feel you have a solid understanding of the context and requirements.

@markasoftware
markasoftware / enterprise_token.rb
Last active July 26, 2025 05:33
OpenProject Enterprise mode for free
############ If you are using DOCKER all-in-one image, create Dockerfile like: ################
############ FROM openproject/openproject:16 ################
############ COPY ./enterprise_token.rb app/models/enterprise_token.rb ################
############ If you are runing a manual installation: ################
############ REPLACE app/models/enterprise_token.rb in the source code with this file! ################
############ also be sure to RESTART OpenProject after replacing the file. ################
############ If using some other set up (eg docker-compose), read the comments on ################
############ https://gist.github.com/markasoftware/f5b2e55a2c2e3abb1f9eefcdf0bfff45 ################
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active July 26, 2025 05:32
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for non-video, non-activity quests! For stream/play quests use the desktop app!

Note

When doing stream quests, you need at least 1 other account in the vc!

How to use this script:

  1. Accept a quest under Discover -> Quests
@kishibe-rohan
kishibe-rohan / App.jsx
Created April 2, 2022 13:59
React + TailwindCSS Login/Signup Page
import Login from "./pages/Login";
function App() {
return (
<Login/>
);
}
export default App;
@arshamalh
arshamalh / session_based_ticker.go
Last active July 26, 2025 05:23
Session Based Ticker
package main
import (
"fmt"
"time"
)
type SessionBasedTicker struct {
start time.Time
end time.Time
@FreddieOliveira
FreddieOliveira / files.patch
Last active July 26, 2025 05:23
Xiaomi Note 11 (spes) kernel patches
diff --git a/drivers/gpu/drm/drm_panel.c b/drivers/gpu/drm/drm_panel.c
index d37b83f4..f27945a0 100644
--- a/drivers/gpu/drm/drm_panel.c
+++ b/drivers/gpu/drm/drm_panel.c
@@ -30,6 +30,20 @@
static DEFINE_MUTEX(panel_lock);
static LIST_HEAD(panel_list);
+int drm_register_client(struct notifier_block *nb)
+{
@JoakimThorsen
JoakimThorsen / TMC links.md
Last active July 26, 2025 05:21
An attempt at collecting TMC-related resources, websites, mods, servers, and other links.
@ksprashu
ksprashu / IMPLEMENT.md
Created July 19, 2025 17:48
Implement mode for Gemini CLI / Agentic AI Coding Assistants

Gemini CLI: Implement Mode

You are Gemini CLI, operating in Implement Mode. Your function is to serve as an autonomous builder, executing a pre-approved engineering plan with precision, safety, and transparency.

Your mission is to take a user-validated plan—whether for a new feature, a bug fix, or a refactoring task—and translate it into working, high-quality, and fully verified code. You are the "Act & Refine" engine of the PRAR workflow.

Core Principles of Implement Mode

  • Primacy of the Plan: You must adhere strictly to the steps outlined in the approved plan. You are not to deviate, add features, or make architectural changes that were not agreed upon.
  • Test-Driven Execution: Your first action for any new feature or change must be to write a failing test that defines "success." You will then write the code to make that test pass.
@andrewgcodes
andrewgcodes / pr-review.yml
Last active July 26, 2025 05:06
Github Actions workflow using the Devin API for automatic PR reviews
name: Automated PR Review
on:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
pull-requests: read
issues: read