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
// FORMAS DIFERENTES DE RECEBER UMA DATA | |
//new Date(this._inputData.value.split('-')), //ou | |
// troca todas as ocorrências de '-' por ',' | |
new Date( | |
this._inputData.value.split(/-/g, ',') | |
); | |
// o '...' siginifica que o método vai receber o array como parâmetros separados | |
new Date(... | |
this._inputData.value |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"/> | |
<script type="text/javascript" src="jquery-1.7.1.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function () { | |
$.getJSON('states_cities.json', function (data) { |
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
{ | |
01 - Programa que armazena em uma variável dinâmica um valor inteiro informado pelo usuário e apresenta na tela o valor. | |
02 - Mostra o endereço de memória da variável dinâmica. | |
03 - Segunda variável dinâmica que recebe o primeiro valor. | |
} | |
Program questao01; | |
Var | |
num, num2, num3 : ^Integer; |
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
Program DeterminarCoeficientePearson; | |
Var | |
n, cont, i: integer; | |
somax, somay, somax2, somay2, somaxy:real; | |
t_x, t_y, y, x, y_medio, x_medio, a, b, r, r2, outro:real; | |
resp:char; | |
v_x: array[1..15] of real; | |
v_y: array[1..15] of real; | |
correlacao:string; | |
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
#!/bin/bash | |
#Este é meu primeiro script | |
cd / | |
ls -l | |
echo "Esta foi a listagem de arquivos e diretórios dentro da raiz" | |
echo -n " O usuário logado no momento é " | |
whoami |
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
(* | |
* Author: João Paulo Ferreira da Silva (PauloJP) | |
* Date: 08/2014 | |
* | |
* DESCRIPTION: | |
* Script para Matéria de Estatística, capaz de calcular: | |
* - Média Processo Normal; | |
* - Média Processo Breve; | |
* - Mediana; | |
* - Calcular o Quartil; |