Skip to content

Instantly share code, notes, and snippets.

View monroy95's full-sized avatar
:octocat:
Developer Mode

Mario Monroy monroy95

:octocat:
Developer Mode
  • None
View GitHub Profile
@monroy95
monroy95 / How-to-Python-in-Cursor.md
Created June 19, 2025 06:19 — forked from joeblackwaslike/How-to-Python-in-Cursor.md
How to use python with the Cursor IDE

How to use python with the Cursor AI IDE

We are going to edit cursors settings to point to the microsoft extensions marketplace.

  1. Remove all extensions and exit Cursor.
  2. Locate your Cursor project.json file depending on your platform and open it.
    • On MacOS: /Applications/Cursor.app/Contents/Resources/app/product.json
    • On Windows: C:\Users\<user_name>\AppData\Local\Programs\cursor\resources\app\product.json
    • On Linux: /usr/lib/code/product.json
  3. Locate the object value for key extensionsGallery in the json document.
REM Delete eval folder with licence key and options.xml which contains a reference to it
for %%I in ("WebStorm", "IntelliJ", "CLion", "Rider", "GoLand", "PhpStorm", "Resharper", "PyCharm") do (
for /d %%a in ("%USERPROFILE%\.%%I*") do (
rd /s /q "%%a/config/eval"
del /q "%%a\config\options\other.xml"
)
)
REM Delete registry key and jetbrains folder (not sure if needet but however)
rmdir /s /q "%APPDATA%\JetBrains"
@monroy95
monroy95 / .prettierrc
Created March 14, 2022 23:36
Archivo configuracion para prettier
{
"arrowParens": "always",
"bracketSameLine": true,
"bracketSpacing": true,
"embeddedLanguageFormatting": "auto",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxSingleQuote": false,
"printWidth": 115,
"proseWrap": "preserve",
@monroy95
monroy95 / .editorconfig
Created March 14, 2022 23:17
Guia de estilo para codigo - Si Hay Sistema. Si el app que estas trabajando no tiene este archivo descargalo y agregalo a la raiz del proyecto.
# EditorConfig is awesome: https://EditorConfig.org
# SI HAY SISTEMA STYLE GUIDE
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
indent_size = 4
{
guestFunctions: [
'erpnext.www.book_appointment.verify.index.get_context(context)',
'erpnext.www.book_appointment.index.get_appointment_settings()',
'erpnext.www.book_appointment.index.get_timezones()',
'erpnext.www.book_appointment.index.get_appointment_slots(date, timezone)',
'erpnext.www.book_appointment.index.create_appointment(date, time, tz, contact)',
'erpnext.templates.utils.send_message(subject="Website Query", message="", sender="", status="Open")',
'erpnext.templates.pages.product_search.get_product_list(search=None, start=0, limit=12)',
'erpnext.templates.pages.integrations.gocardless_confirmation.confirm_payment(redirect_flow_id, reference_doctype, reference_docname)',
@monroy95
monroy95 / gist:9c7efba365c5ddf611dd7ffdbf464009
Created September 7, 2020 17:05 — forked from mrtns/gist:78d15e3263b2f6a231fe
Upgrade Chrome from Command Line on Ubuntu
# Install
# via http://askubuntu.com/questions/510056/how-to-install-google-chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt-get update
sudo apt-get install google-chrome-stable
# Update
@monroy95
monroy95 / DateDifference.py
Created January 28, 2020 03:14 — forked from amalgjose/DateDifference.py
This is a very simple python code snippet for calculating the difference between two dates or timestamps. This will calculate the difference in terms of number of years, months, days, hours, minutes etc.
__author__ = 'Amal G Jose'
from datetime import datetime
from dateutil import relativedelta
##Aug 7 1989 8:10 pm
date_1 = datetime(1989, 8, 7, 20, 10)
##Dec 5 1990 5:20 am
date_2 = datetime(1990, 12, 5, 5, 20)
@monroy95
monroy95 / CollectionPostman.json
Created October 28, 2019 03:10
API - Frappe Training
{
"info": {
"_postman_id": "b9dc66a6-ce79-4b06-8914-2da3f06f7235",
"name": "Frappe Training",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [{
"name": "AUTH1",
"request": {
"auth": {
frappe.ui.form.on('Customer', {
nit: function (frm) {
var nit_validado;
var cus_supp = frm.doc.customer_name; // Nombre de cliente o proveedor
var nit = frm.doc.nit;
if (nit === "C/F" || nit === "c/f") {
frm.enable_save(); // Activa y Muestra el boton guardar de Sales Invoice
} else {
var nd, add = 0;
if (nd = /^(\d+)\-?([\dk])$/i.exec(nit)) {
@monroy95
monroy95 / snippets_frappe_JS.jsonc
Last active October 7, 2019 15:56
WIP snippets frappe js
{
// Place your snippets for javascript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",