Skip to content

Instantly share code, notes, and snippets.

View LuqueDaniel's full-sized avatar
🎧
Distortion!!

Daniel Luque LuqueDaniel

🎧
Distortion!!
View GitHub Profile
@LuqueDaniel
LuqueDaniel / launch.json
Created March 30, 2023 10:45
VSCode debug python tests without coverage to avoid ignoring breakpoints
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Debug Unit Test",
"type": "python",
"request": "launch",
@LuqueDaniel
LuqueDaniel / README.md
Last active April 23, 2020 18:30
Script de OpenUpgrade para migrar l10n_es_pos de Odoo 10.0 a 11.0

Script de OpenUpgrade para migrar l10n_es_pos de Odoo 10.0 a 11.0. En caso de haber instalado en Odoo 10.0 esta PR.

@LuqueDaniel
LuqueDaniel / odoo_images.py
Last active January 15, 2020 22:53
Script to copy products images from a source database to a destination database in Odoo
# License AGPLv3 (http://www.gnu.org/licenses/agpl-3.0-standalone.html)
from threading import Thread
from queue import Queue
import odoorpc
ODOO_SRC = {
'host': '127.0.0.1',

Neverwinter - Comandos y atajos de teclado

Repaso breve a los comandos, crear atajos de teclado y una lista de comandos útiles.

Crear alias

Los alias son por así decirlo abreviaturas de un comando. Por ejemplo si queremos conocer el ping en el juego pero el comando por defecto nos parece muy largo podemos crear un alias para abreviarlo: /alias ping "netgraph 1".

La sintaxis del comando es:

/alias abreviatura "comando_entre_comillas"
@LuqueDaniel
LuqueDaniel / PyQt_custom_context_menu.py
Last active September 20, 2021 20:15
PyQt custom context menu
# -*- coding: utf-8 -*-
#PyQt4.QtGui imports
from PyQt4.QtGui import QApplication
from PyQt4.QtGui import QMainWindow
from PyQt4.QtGui import QTextEdit
from PyQt4.QtGui import QMenu
from PyQt4.QtGui import QCursor
#PyQt4.QtGui imports
@LuqueDaniel
LuqueDaniel / json_serialize.py
Last active January 8, 2017 16:43
Serialize python objet to Json
# coding: utf-8
import json
class UserEncoder(json.JSONEncoder):
def default(self, obj):
return obj.__dict__
@LuqueDaniel
LuqueDaniel / property.py
Created July 7, 2012 17:09
Property use
#encoding: utf-8
#!/usr/bin/env python
class nueva_clase(object):
def __init__(self):
self.numero = 2
def mostrar(self):