Skip to content

Instantly share code, notes, and snippets.

View agarrido19's full-sized avatar
๐Ÿ™
Dorime

Yisus agarrido19

๐Ÿ™
Dorime
  • Cuenca
  • cdmx
View GitHub Profile
@agarrido19
agarrido19 / server.py
Created June 12, 2021 01:09 — forked from christianroman/server.py
Rompiendo Captcha de CURP usando Python, OpenCV, Tesseract OCR y Tornado
import tornado.ioloop
import tornado.web
import urllib2 as urllib
from PIL import Image
from cStringIO import StringIO
import numpy as np
import tesserwrap
import cv2
class MainHandler(tornado.web.RequestHandler):
@agarrido19
agarrido19 / .bash_profile
Created December 18, 2019 15:34 — forked from chrisberkhout/.bash_profile
Git aliases taken from oh-my-zsh's git plugin and translated to bash
# git aliases - taken from oh-my-zsh's git plugin and translated to bash
# https://github.com/robbyrussell/oh-my-zsh/wiki/Cheatsheet#helpful-aliases-for-common-git-tasks
# https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/git/git.plugin.zsh
function git_current_branch() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || \
ref=$(git rev-parse --short HEAD 2> /dev/null) || return
echo ${ref#refs/heads/}
}
function git_current_repository() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || \
@agarrido19
agarrido19 / .bash_profile
Created December 18, 2019 15:34 — forked from chrisberkhout/.bash_profile
Git aliases taken from oh-my-zsh's git plugin and translated to bash
# git aliases - taken from oh-my-zsh's git plugin and translated to bash
# https://github.com/robbyrussell/oh-my-zsh/wiki/Cheatsheet#helpful-aliases-for-common-git-tasks
# https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/git/git.plugin.zsh
function git_current_branch() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || \
ref=$(git rev-parse --short HEAD 2> /dev/null) || return
echo ${ref#refs/heads/}
}
function git_current_repository() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || \
@agarrido19
agarrido19 / flask_dump_request_response.py
Created December 16, 2019 17:09 — forked from TheWaWaR/flask_dump_request_response.py
Flask dump request and response example
#!/usr/bin/env python
# coding: utf-8
import os
import sys
import json
import uuid
import tempfile
from flask import Flask, request, Response, g
@agarrido19
agarrido19 / mypy.ini
Created November 25, 2019 10:35 — forked from rbaynes/mypy.ini
Python 3.6 static type checking test
[mypy]
python_version = 3.6
ignore_missing_imports = True
disallow_untyped_calls = True
disallow_untyped_defs = True
disallow_incomplete_defs = True
check_untyped_defs = True
[mypy-app.migrations.*]
ignore_errors = True
@agarrido19
agarrido19 / foo.py
Created November 25, 2019 10:33 — forked from amyreese/foo.py
#!/usr/bin/env python3
from attr import dataclass, Factory
from typing import Dict, List
@dataclass
class Foo:
_instances: Dict[str, "Foo"] = Factory(dict)
@agarrido19
agarrido19 / cheatsheet.py
Created April 25, 2019 20:41 — forked from fuyufjh/cheatsheet.py
My Python Cheatsheet
Python Cheatsheet
=================
################################ Input & Output ###############################
name = input('please enter your name: ')
print('hello,', name)
ageStr = input('please enter your age: ')
age = int(ageStr)
@agarrido19
agarrido19 / surprised_pikachu.txt
Created December 18, 2018 05:04 — forked from gastricsparrow/surprised_pikachu.txt
Surprised Pikachu for all your test passing needs
,@@@@@@@@@@,,@@@@@@@% .#&@@@&&.,@@@@@@@@@@, %@@@@@@%* ,@@@% .#&@@@&&. *&@@@@&( ,@@@@@@@% %@@@@@, ,@@,
,@@, ,@@, ,@@/ ./. ,@@, %@% ,&@# .&@&@@( .@@/ ./. #@&. .,/ ,@@, %@% *&@&. ,@@,
,@@, ,@@&%%%%. .&@@/, ,@@, %@% ,&@# %@& /@@, .&@@/, (@@&%(*. ,@@&%%%%. %@% &@# ,@@,
,@@, ,@@/,,,, ./#&@@@( ,@@, %@@@@@@%* /@@, #@&. ./#&@@@( *(%&@@&. ,@@/,,,, %@% &@# .&&.
,@@, ,@@, ./, .&@# ,@@, %@% ,@@@@@@@@@% ./. .&@# /*. /@@. ,@@, %@% *&@&. ,,
,@@, ,@@@@@@@% .#&@@@@&/ ,@@, %@% .&@# ,@@/.#&@@@@&/ /%&@@@@. ,@@@@@@@% %@@@@@. ,@@,
,*************,,*/(((((//,,*(#%%%%%%%%%%%%%%%#(*,,,****************************************************,*/(((((((((/((((////****/((##%%%%%%
,*************,,//((((((//,,*(%%%%%%%%%%%%%%%%%##/*
@agarrido19
agarrido19 / create-py-project
Created November 6, 2018 01:03 — forked from cdriehuys/ create-py-project
A script to make creating python projects easier.
#! /bin/bash
ENV_NAME='env'
PYTHON_NAME='python3'
project_name=$1
function configure_sublime() {
env_dir=$(readlink -f $project_name/$ENV_NAME)
@agarrido19
agarrido19 / rsync.py
Created August 28, 2018 17:34 — forked from wankunde/rsync.py
rsync files with scp
#!/usr/bin/python
# -*- coding: UTF-8 -*-
# author: wankun
# date: 2015-10-30
# description: async file
import os as _os
import os.path as _path
import time as _time