This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"arrowParens": "always", | |
"bracketSameLine": true, | |
"bracketSpacing": true, | |
"embeddedLanguageFormatting": "auto", | |
"htmlWhitespaceSensitivity": "css", | |
"insertPragma": false, | |
"jsxSingleQuote": false, | |
"printWidth": 115, | |
"proseWrap": "preserve", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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)', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
// 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');", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def validar_nit(nit): | |
'''Funcion para validar NIT''' | |
# Elimina espacios en blanco | |
nit_n = nit.replace(' ', '') | |
# Elimina el guion del nit | |
nit_ok = nit_n.replace('-', '') | |
# Base para multiplicar | |
base = 1 | |
# Guarda el digito validador, el ultimo |
NewerOlder