I hereby claim:
- I am cyraxjoe on github.
- I am cyraxjoe (https://keybase.io/cyraxjoe) on keybase.
- I have a public key ASBk1dRF0gdkIcVFORqKWwSqxVUZKBge92AgSFRPqNwwfAo
To claim this, I am signing this object:
[tool.poetry] | |
name = "sample" | |
version = "0.1.0" | |
description = "" | |
authors = ["Your Name <you@example.com>"] | |
readme = "README.md" | |
[tool.poetry.dependencies] | |
python = "^3.10" | |
beautifulsoup4 = "^4.11.1" |
;; hook nim-mode into lsp | |
(add-to-list 'lsp-language-id-configuration '(nim-mode . "nim")) | |
(lsp-register-client | |
(make-lsp-client :new-connection (lsp-stdio-connection "nimlsp") | |
:major-modes '(nim-mode) | |
:server-id 'nimlsp)) | |
(add-hook 'nim-mode-hook #'lsp) |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
# | |
# Descarga el zip con los certificados raiz del SAT de: | |
# http://omawww.sat.gob.mx/informacion_fiscal/factura_electronica/Paginas/certificado_sello_digital.aspx | |
# | |
# Para usar el script ponlo en la raiz del directorio extraido de Cert_Prod.zip. | |
# | |
# Ejecuta con: | |
# bash ./create-hashes.sh <TARGET-DIR> | |
# |
import ast | |
func_code = """ | |
def test(): | |
foo = 1 | |
bar = 2 | |
return foo + bar | |
""" | |
tree = ast.parse(func_code) |
from __future__ import print_function | |
class BaseA(object): | |
def __init__(self): | |
self.a = "A" | |
class BaseB(object): |
import threading | |
import functools | |
import cherrypy as cp | |
class MainExecutor: | |
"""Wrap a callable to ensure that the execution takes place on the | |
MainThread based on the cherrypy.engine and the 'main' channel. |
from contextlib import contextmanager | |
import cherrypy | |
from cherrypy.lib import cptools | |
class View(object): | |
__mime__ = 'text/html' | |
def __init__(self, controller): |
import cherrypy | |
class MultiViewHandler(object): | |
def __new__(cls): | |
"""Do something to be able to use the right view to the | |
right Accept header | |
""" | |
class SpecialDispatcher(cherrypy.dispatcher.Dispatcher) | |
"""Custom dispatcher to use the special properties of the |