This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Added on http://www.rafaelhdr.com.br/blog/python/pegar-cep-do-site-dos-correios-em-python at 25/10/2014 | |
# | |
# This is a simple function to get data at brazilian correios | |
# It searches at http://www.buscacep.correios.com.br/ and return as a dict the | |
# information retrieved. | |
# | |
# Before use it, you need install the following libs: | |
# pip install beautifulsoup4 | |
# pip install requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Original: https://gist.github.com/devmatheus/38cd250c3bb46f0ad2c8 | |
* | |
* Changes: | |
* - It is not necessary define page on __construct | |
* - Set layout for embed template | |
* | |
* Problem: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function removeItem(item, lista) { | |
lista = jQuery.grep(lista, function(value) { | |
return value != item; | |
}); | |
return lista; | |
} |
NewerOlder