I hereby claim:
- I am xlarsx on github.
- I am xlarsx (https://keybase.io/xlarsx) on keybase.
- I have a public key whose fingerprint is C48E 8EA3 F0A2 3029 0805 6762 9F13 C6B6 F63B A81C
To claim this, I am signing this object:
| class Canvas(object): | |
| def __init__(self, lock): | |
| self.lock = lock | |
| def __enter__(self): | |
| ContenedorCanvas.estableceObjeto(self) | |
| return self | |
| def __exit__(self, type, value, tb): | |
| ContenedorCanvas.terminaUsarObjeto(self) |
| import os, re | |
| def evalua(matchobj): | |
| textoAnterior = matchobj.group(0) | |
| llave = textoAnterior[1 : len(textoAnterior) - 1] | |
| if llave in os.environ: | |
| return os.environ[llave] | |
| return textoAnterior | |
| def validaRutas(texto): |
| import os, re | |
| def procesamientoCodificacion(archivo): | |
| try: | |
| return unicode(archivo) | |
| except: | |
| return archivo | |
| def busquedaArchivos(nDirectorio, delegado, patron = ".*"): | |
| if os.path.isdir(nDirectorio): |
| => def - Definición de un macro | |
| Ejemplo: | |
| (def nomSimbolo "Texto") | |
| => ns - Definición de una namespace | |
| Ejemplo: | |
| (ns namespace1) | |
| Variantes: | |
| :use - Importa al namespace otro namespace | |
| Ejemplo: |
| class MiBoton(object): | |
| def __init__(self): | |
| self.delegadoClic = None | |
| self.on_clic = self.obtenDecorador() | |
| def obtenDecorador(self): | |
| def decorador(f): | |
| self.delegadoClic = f | |
| def funcionInterna(*arg1, **arg2): | |
| f(*arg1, **arg2) |
| ## Ref: http://www.qtcentre.org/threads/27130-Rotate-QGraphicsProxyWidget-in-QGraphicsView | |
| #include <QtGui> | |
| int main(int argc, char *argv[]) | |
| { | |
| QApplication a(argc, argv); | |
| QGraphicsView gv; | |
| QGraphicsScene scene(-200,-200,400,400); | |
| gv.setScene(&scene); |
| #!/bin/bash | |
| DIRECTORY=$(cd `dirname .` && pwd) | |
| ARGUMENTS="'$@'" | |
| echo find: $ARGUMENTS on $DIRECTORY | |
| find . -maxdepth 5 -type f -exec grep "$@" {} + |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python | |
| # -*- coding: UTF-8 -*- | |
| import os | |
| import git | |
| from gitdb import GitDB | |
| basePath = "." | |
| reposPath = ["billsios7"] |
| on run {input, parameters} | |
| repeat with this_item in the input | |
| set the item_info to info for this_item | |
| tell application id "com.evernote.evernote" | |
| activate | |
| create note from file this_item | |
| end tell | |
| end repeat | |
| return input | |
| end run |