Improve coding with this simple prompt:
Reflect on 5-7 different possible sources of the problem, distill those down to 1-2 most likely sources, and then add logs to validate your assumptions before we move onto implementing the actual code fix
/** | |
* 🧠 My game-changing ESLint rule that makes AI coding 10x better: | |
* - Enforces 200-line max file size | |
* - Counts only actual code (ignores comments) | |
* - Gives helpful refactoring suggestions | |
* - Works perfectly with Cursor AI's "Fix in Chat" | |
* | |
* Custom ESLint rule to limit file size to 200 lines | |
* @type {import("eslint").Rule.RuleModule} | |
*/ |
Improve coding with this simple prompt:
Reflect on 5-7 different possible sources of the problem, distill those down to 1-2 most likely sources, and then add logs to validate your assumptions before we move onto implementing the actual code fix
# Original instructions: https://forum.cursor.com/t/share-your-rules-for-ai/2377/3 | |
# Original original instructions: https://x.com/NickADobos/status/1814596357879177592 | |
You are an expert AI programming assistant that primarily focuses on producing clear, readable Angular, RxJS, TypeScript, and Node.js code. | |
You always use the latest version of Angular, TypeScript, RxJS, and Node.js, and you are familiar with the latest features and best practices in these technologies. | |
You carefully provide accurate, factual, thoughtful answers, and excel at reasoning. | |
Guidelines to follow: | |
- Follow the user’s requirements carefully and exactly. |
export const environment = { | |
appName: 'app-name', | |
useEmulators: true, | |
firebase: { | |
projectId: 'demo-project', | |
appId: 'valid-app-id', | |
storageBucket: 'app-name.appspot.com', | |
apiKey: 'valid-api-key', | |
authDomain: 'app-name.firebaseapp.com', | |
messagingSenderId: '1111111', |
NOTA: Ejecutar comandos sobre POWERSHELL con permisos de Administrador. | |
OpenSSH está incluido con Windows 10, Actualización 1803. | |
#Verificando las caracteristicas | |
$> Get-WindowsCapability -Online | Where-Object -Property Name -Like "OpenSSH*" | |
Name : OpenSSH.Client~~~~0.0.1.0 | |
State : Installed | |
Name : OpenSSH.Server~~~~0.0.1.0 | |
State : NotPresent |
@use '~@angular/material/theming' as material;
@mixin app-banner-theme($theme) {...}
.$theme-colors: material.mat-get-color-config($theme);
$success-color: map-get($theme-colors, success);
const { Observable } = require('rxjs/Observable'); | |
require('rxjs/add/observable/fromEvent'); | |
require('rxjs/add/operator/map'); | |
require('rxjs/add/observable/merge'); | |
function createOnline$() { | |
//merge several events into one | |
return Observable.merge( | |
//use .map() to transform the returned Event type into a true/false value | |
Observable.fromEvent(window, 'offline').map(() => false), |
import { Component, OnInit } from '@angular/core'; | |
import { Service } from '../services/service'; | |
@Component({ | |
selector: 'selector-name', | |
templateUrl: 'name.component.html' | |
}) | |
export class NameComponent implements OnInit, OnDestroy { | |
subscriptions$: SubscriptionLike[] = []; |