Não use UUID
como PK nas tabelas do seu banco de dados.
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
#baseado em https://blogs.worldbank.org/opendata/accessing-world-bank-data-apis-python-r-ruby-stata | |
import wbdata | |
import matplotlib.pyplot as plt | |
#set up the countries I want | |
countries = ["CL","UY","BR"] | |
#set up the indicator I want (just build up the dict if you want more than one) | |
indicators = {'NY.GNP.PCAP.CD':'GNI per Capita'} | |
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
#! /usr/bin/env bash | |
### | |
# | |
# install_mysql.sh | |
# | |
# This script assumes your Vagrantfile has been configured to map the root of | |
# your application to /vagrant and that your web root is the "public" folder | |
# (Laravel standard). Standard and error output is sent to | |
# /vagrant/vm_build.log during provisioning. |
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
import requests | |
from bs4 import BeautifulSoup as bs | |
u = 'http://www.portaldatransparencia.gov.br/servidores/OrgaoLotacao-ListaServidores.asp?CodOS=15000&DescOS=MINISTERIO%20DA%20EDUCACAO&CodOrg=26245&DescOrg=UNIVERSIDADE%20FEDERAL%20DO%20RIO%20DE%20JANEIRO&Pagina=' | |
base = 'http://www.portaldatransparencia.gov.br/' | |
def extrai_valor(u): | |
j = u.find('=') + 1 | |
k = u.find('&', j) | |
id_servidor = u[j: k] |
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 createStore({ state, mutations }) { | |
return { | |
state: Vue.observable(state), | |
commit(key, ...args) { | |
mutations[key](state, ...args) | |
} | |
} | |
} | |
const store = createStore({ | |
state: { count: 0 }, |