<p class="autoria">
Por: <a title="Fulano" target="_blank" href="http://www.comppet.ufu.br/content/petianos/x">Fulano</a>
</p>
Títulos:
# VENTO U / V | |
# criando um 'vento_dirrad' com a direcao do vento em radiano | |
dado['vento_dirrad'] = dado['vento_dir'] + 180 | |
dado['vento_dirrad'] = np.deg2rad(dado['vento_dirrad']) | |
# decompondo a vento_velocidade em u e v | |
#-------------------------------------------------------------- | |
f = dado.vento_dirrad == 0 | |
dado.loc[f,'vento_dir_u'] = np.cos(dado.vento_dirrad[f]) |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import numpy as np | |
# criando a matriz e preenchendo ela com NaN | |
mat = np.zeros((50,100)) | |
mat.fill(np.NaN) | |
# vamos preencher a matriz com alguns valores | |
for i in range(mat.shape[0]): |
# bibliotecas | |
from mpl_toolkits.basemap import Basemap | |
import matplotlib.pyplot as plt | |
import numpy as np | |
# a batimetria precisa ser extraída do site do etopo | |
# https://maps.ngdc.noaa.gov/viewers/wcs-client/ | |
etopo = Dataset('dados/etopo1_bedrock.nc') |
import matplotlib.pyplot as plt | |
from mpl_toolkits.basemap import Basemap | |
from netCDF4 import Dataset | |
import cmocean as cm | |
import numpy as np | |
import pandas as pd |
import urllib.request | |
for i in range(1,2): | |
url_base = 'https://www.site.com/' | |
file = 'arquivo_{0:02d}.nc'.format(i) | |
url = url_base+file | |
print('Baixando {}...'.format(file)) |
<?php | |
$string = "Computação"; | |
diminuiString($string, 8); | |
function diminuiString($string, $tamanho) { | |
$maximo = $tamanho; | |
if(strlen($string) < $maximo) { | |
echo $string; | |
} | |
else { |
<?php | |
function return_row($cell){ | |
return floor($cell/9); | |
} | |
function return_col($cell){ | |
return $cell % 9; | |
} |
CPBR6 - Modelo de Negócios em negócios tradicionais e digita | |
http://www.youtube.com/watch?v=3genjz_g0Gc | |
CPBR6 - Como ganhar dinheiro com Apps | |
http://www.youtube.com/watch?v=MGZrR3vxwQ4 | |
CPBR6 - Desenvolvimento Orientado a Testes | |
http://www.youtube.com/watch?v=MJ1SRtZXPr0 | |
CPBR6 - De pequenas startups a grandes negócios |
<html> | |
<head> | |
<title>Backgruound movendo lentamente</title> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
$('div.bgParallax').each(function(){ | |
var $obj = $(this); | |
$(window).scroll(function() { |