This file contains hidden or 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
| import requests | |
| data = { | |
| 'number': request.data.get('number'), | |
| 'verification_value': request.data.get('verification_value'), | |
| 'first_name': request.data.get('first_name'), | |
| 'last_name': request.data.get('last_name'), | |
| 'month': request.data.get('month'), | |
| 'year': request.data.get('year') | |
| } |
This file contains hidden or 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 () { | |
| // URL do feed que será analisado pela API do Google | |
| var urlRss = 'http://mbeck.com.br/blog/feed/'; | |
| // Chamada assíncrona em jQuery para acessar a API | |
| $.ajax({ | |
| type: "GET", | |
| url: document.location.protocol + '//ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=1000&callback=?&q=' + encodeURIComponent(urlRss), | |
| dataType: 'json', | |
| error: function (xhr) { |
This file contains hidden or 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
| module.exports = function(grunt) { | |
| grunt.initConfig({ | |
| sass: { | |
| // Essa é a configuração Sass para a "dev" que será utilizada | |
| // no comando "grunt watch" | |
| dev: { | |
| options: { | |
| style: 'expanded', | |
| // avisa para o Sass procurar no diretório de CSS do | |
| // Bootstrap quando for compilar |
This file contains hidden or 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
| def hide_emailaddress_parts(email): | |
| """ | |
| Esconde partes de um email para exibi-lo publicamente sem problemas de privacidade | |
| :param email: string | |
| :return: string transformada | |
| """ | |
| parts = email.split("@") | |
| username = parts[0] | |
| domain = parts[1].split(".") |
This file contains hidden or 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
| 'use strict'; | |
| module.exports = function (grunt) { | |
| ... // omitido para exemplo | |
| // Configurações do Grunt | |
| grunt.initConfig({ | |
| ... // omitido para exemplo | |
| // Registramos as variáveis de acordo com o ambiente | |
| ngconstant: { | |
| options: { |
This file contains hidden or 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
| # -*- coding: utf-8-*- | |
| import sys | |
| import requests | |
| import json | |
| from openpyxl import load_workbook | |
| from script import coordinates # importo o método do projeto | |
| # https://github.com/ffreitasalves/python-address-to-coordinates | |
| # Uma lista de API KEYs do Google Maps | |
| api_key = ["<api key>", |
This file contains hidden or 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
| var processing; | |
| var next_page = 2; | |
| jQuery(document).ready(function($){ | |
| $(document).scroll(function(e){ | |
| if (processing) | |
| return false; |