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 *-* | |
# pip install python-crontab croniter | |
from crontab import CronTab | |
#init cron | |
cron = CronTab() | |
#add new cron job | |
job = cron.new(command='python /home/horacio/Downloads/teste.py') | |
#job settings |
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 socket, sys | |
import threading | |
def tratando_host(host_proxy): | |
host_proxy = host_proxy.replace("Host: ", "") | |
index_prota_proxy = host_proxy.find(":") | |
port_proxy = host_proxy[index_prota_proxy:].replace(":","").replace("\r\n","") if index_prota_proxy != -1 else 80 | |
port_proxy = int(port_proxy) | |
return (host_proxy, port_proxy) |
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 *-* | |
from sqlalchemy import Table, Column, Integer, String, ForeignKey | |
from sqlalchemy.orm import relationship, backref | |
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy.types import Enum | |
''' Session ''' | |
from sqlalchemy.orm import sessionmaker | |
from sqlalchemy import create_engine | |
from sqlalchemy.pool import StaticPool |
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
/* | |
* | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <locale.h> //necessário para usar setlocale | |
#include <malloc.h> | |
struct Pessoa{ | |
int idade; |
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
# O FROM serve para indicar a imagem utilizada como base. | |
FROM debian:wheezy | |
# MAINTAINER é quem cria a imagem. | |
MAINTAINER Horácio Dias Baptista Neto <[email protected]> | |
# O RUN executa comandos durante o build, que serão | |
# refletidos na imagem final. Há várias formas de passar | |
# os parâmetros, eu costumo utilizar esta: | |
## Vamos atualizar o APT. |
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
http://pt.slideshare.net/DouglasLira/criando-um-componente-de-busca |
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 flask | |
import flask.ext.sqlalchemy | |
app = flask.Flask(__name__) | |
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/test.db' | |
db = flask.ext.sqlalchemy.SQLAlchemy(app) | |
class Person(db.Model): | |
id = db.Column(db.Integer, primary_key=True) | |
name = db.Column(db.Unicode, unique=True) |
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
requests | |
bs4 |
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
http://www.psychologyofgames.com/ |
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
1. O que é IPO (Initial Public Offering)? | |
Oferta pública inicial (usualmente referida como IPO, do inglês Initial Public Offering) é um tipo de oferta pública em que as ações de uma empresa são vendidas ao público em geral numa bolsa de valores pela primeira vez. É o processo pelo qual uma empresa se torna numa empresa de capital aberto. | |
2. Quais os benefícios que a abertura de capital trás à empresa? | |
Em síntese é um meio de financiamento através da emissão de ações, ou seja, aumentando o capital próprio, via novas inversões dos antigos sócios e principalmente através da admissão de novos sócios. É uma fonte de recursos que não possui limitação. Enquanto a empresa tiver projetos viáveis e rentáveis encontrará investidores com interesse de financiá-los. | |
3. Diferencie os temas fusão e quisição | |
- Aquisição | |
O conceito de aquisição de empresa respeita apenas à aquisição total ou parcial do capital de uma empresa. A aquisição pode ser minoritária ou de controlo. Quando utilizamos o termo fusões e aquisições (F&A) |