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:
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 |
from contextlib import contextmanager | |
import cherrypy | |
from cherrypy.lib import cptools | |
class View(object): | |
__mime__ = 'text/html' | |
def __init__(self, controller): |
import sys | |
import socket | |
def client(*bparams): | |
s = socket.socket() | |
s.connect(bparams) | |
return s | |
def server(*bparams): | |
s = socket.socket() |
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../paper-item/paper-item.html"> |
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 __future__ import print_function | |
class BaseA(object): | |
def __init__(self): | |
self.a = "A" | |
class BaseB(object): |
I hereby claim:
To claim this, I am signing this object:
import ast | |
func_code = """ | |
def test(): | |
foo = 1 | |
bar = 2 | |
return foo + bar | |
""" | |
tree = ast.parse(func_code) |
#!/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> | |
# |