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 re | |
| from time import time | |
| # le conteudo arquivo | |
| def retorna_conteudo_arquivo(caminho_arquivo: str): | |
| with open(caminho_arquivo) as f: | |
| return f.read() | |
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 sys | |
| from math import sqrt | |
| from random import uniform | |
| from time import time | |
| def imprime_lista_coordenadas(lista: [], titulo: str): | |
| print('=> {}:'.format(titulo)) | |
| for c in lista: | |
| print(' - ({}, {})'.format(c[0], c[1])) |
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
| angular.module('app', ['ionic', 'ionic.service.core', 'ionic.service.push', 'app.constants', 'app.controllers', 'app.services', 'app.routes', 'ngCordova']) | |
| .run(function ($ionicPlatform, Users, PushService) { | |
| $ionicPlatform.ready(function () { | |
| // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard | |
| // for form inputs) | |
| if (window.cordova && window.cordova.plugins && window.cordova.plugins.Keyboard) { | |
| cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true); | |
| cordova.plugins.Keyboard.disableScroll(true); | |
| } |